コード例 #1
0
ファイル: TextPart.cs プロジェクト: shekky/MimeKit
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.TextPart"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitTextPart"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitTextPart"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitTextPart (this);
		}
コード例 #2
0
ファイル: MimeEntity.cs プロジェクト: youprofit/MimeKit
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public virtual void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }

            visitor.VisitMimeEntity(this);
        }
コード例 #3
0
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MessageDeliveryStatus"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMessageDeliveryStatus"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMessageDeliveryStatus"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }

            visitor.VisitMessageDeliveryStatus(this);
        }
コード例 #4
0
ファイル: MessagePartial.cs プロジェクト: jaredtait/MimeKit
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MessagePartial"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMessagePartial"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMessagePartial"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.VisitMessagePartial(this);
        }
コード例 #5
0
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }

            visitor.VisitMultipartAlternative(this);
        }
コード例 #6
0
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MessageDispositionNotification"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMessageDispositionNotification"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMessageDispositionNotification"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.VisitMessageDispositionNotification(this);
        }
コード例 #7
0
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MultipartReport"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMultipartReport"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMultipartReport"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.VisitMultipartReport(this);
        }
コード例 #8
0
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="TextRfc822Headers"/> nodes
        /// calls <see cref="MimeVisitor.VisitTextRfc822Headers"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeVisitor.VisitTextRfc822Headers"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.VisitTextRfc822Headers(this);
        }
コード例 #9
0
ファイル: MimePart.cs プロジェクト: ruffin--/MimeKit
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }

            visitor.VisitMimePart(this);
        }
コード例 #10
0
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MultipartAlternative"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMultipartAlternative"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMultipartAlternative"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitMultipartAlternative (this);
		}
コード例 #11
0
ファイル: MimeMessage.cs プロジェクト: yukine/MimeKit
		/// <summary>
		/// Dispatches to the specific visit method for this MIME message.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MimeMessage"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMimeMessage"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMimeMessage"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public virtual void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException ("visitor");

			visitor.VisitMimeMessage (this);
		}
コード例 #12
0
ファイル: MessagePart.cs プロジェクト: dcga/MimeKit
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException ("visitor");

			visitor.VisitMessagePart (this);
		}
コード例 #13
0
ファイル: MultipartRelated.cs プロジェクト: dcga/MimeKit
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException ("visitor");

			visitor.VisitMultipartRelated (this);
		}
コード例 #14
0
ファイル: TextPart.cs プロジェクト: surekqomi/MimeKit
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.TextPart"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitTextPart"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitTextPart"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitTextPart (this);
		}
コード例 #15
0
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MessageDispositionNotification"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMessageDispositionNotification"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMessageDispositionNotification"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitMessageDispositionNotification (this);
		}
コード例 #16
0
ファイル: MimeEntity.cs プロジェクト: cybercircuits/MimeKit
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public virtual void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitMimeEntity (this);
		}
コード例 #17
0
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MessageDeliveryStatus"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMessageDeliveryStatus"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMessageDeliveryStatus"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitMessageDeliveryStatus (this);
		}