⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sharpmimeheader.cs

📁 Bug管理系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
		/// <value><see cref="System.Collections.Specialized.StringDictionary"/> with the elements found in the header body</value>
		public System.Collections.Specialized.StringDictionary ContentLocationParameters {
			get {
				return this.mt.contentlocation;
			}
		}
		/// <summary>
		/// Gets Content-Transfer-Encoding header field
		/// </summary>
		/// <value>Content-Transfer-Encoding header body</value>
		public System.String ContentTransferEncoding {
			get {
				System.String tmp = this.getProperty("Content-Transfer-Encoding");
				if ( tmp!=null ) {
					tmp = tmp.ToLower();
				}
				return tmp;
			}
		}
		/// <summary>
		/// Gets Content-Type header field
		/// </summary>
		/// <value>Content-Type header body</value>
		public System.String ContentType {
			get {
				System.String tmp = this.getProperty("Content-Type");
				if ( tmp==null ) {
					tmp = "text/plain; charset=us-ascii";
				}
				return tmp;
			}
		}
		/// <summary>
		/// Gets the elements found in the Content-Type header body
		/// </summary>
		/// <value><see cref="System.Collections.Specialized.StringDictionary"/> with the elements found in the header body</value>
		public System.Collections.Specialized.StringDictionary ContentTypeParameters {
			get {
				return this.mt.contenttype;
			}
		}
		/// <summary>
		/// Gets Date header field
		/// </summary>
		/// <value>Date header body</value>
		public System.String Date {
			get {
				System.String tmp = this.getProperty("Date");
				if ( tmp==null )
					tmp = System.String.Empty;
				else
					tmp = anmar.SharpMimeTools.SharpMimeTools.uncommentString ( tmp );
				return tmp;
			}
		}
		/// <summary>
		/// Gets <see cref="System.Text.Encoding"/> found on the headers and applies to the body
		/// </summary>
		/// <value><see cref="System.Text.Encoding"/> for the body</value>
		public System.Text.Encoding Encoding {
			get {
				this.parse();
				return this.mt.enc;
			}
		}
		/// <summary>
		/// Gets From header field
		/// </summary>
		/// <value>From header body</value>
		public System.String From {
			get {
				System.String tmp = this.getProperty("From");
				if ( tmp==null )
					tmp = System.String.Empty;
				else
					tmp = anmar.SharpMimeTools.SharpMimeTools.uncommentString ( tmp );
				return tmp;
			}
		}
		/// <summary>
		/// Gets Raw headers
		/// </summary>
		/// <value>From header body</value>
		public System.String RawHeaders {
			get {
				if ( this._cached_headers!=null )
					return this._cached_headers;
				else
					return this.message.ReadLines( this.startpoint, this.endpoint );
			}
		}
		/// <summary>
		/// Gets Message-ID header field
		/// </summary>
		/// <value>Message-ID header body</value>
		public System.String MessageID {
			get {
				System.String tmp = this.getProperty("Message-ID");
				if ( tmp==null )
					tmp = System.String.Empty;
				else
					tmp = anmar.SharpMimeTools.SharpMimeTools.uncommentString ( tmp );
				return tmp;
			}
		}
		/// <summary>
		/// Gets reply address as defined by <c>rfc 2822</c>
		/// </summary>
		/// <value>Reply address</value>
		public System.String Reply {
			get {
				if ( !this.ReplyTo.Equals(System.String.Empty) )
					return this.ReplyTo;
				else
					return this.From;
			}
		}
		/// <summary>
		/// Gets Reply-To header field
		/// </summary>
		/// <value>Reply-To header body</value>
		public System.String ReplyTo {
			get {
				System.String tmp = this.getProperty("Reply-To");
				if ( tmp==null )
					tmp = System.String.Empty;
				else
					tmp = anmar.SharpMimeTools.SharpMimeTools.uncommentString ( tmp );
				return tmp;
			}
		}
		/// <summary>
		/// Gets Return-Path header field
		/// </summary>
		/// <value>Return-Path header body</value>
		public System.String ReturnPath {
			get {
				System.String tmp = this.getProperty("Return-Path");
				if ( tmp==null )
					tmp = System.String.Empty;
				else
					tmp = anmar.SharpMimeTools.SharpMimeTools.uncommentString ( tmp );
				return tmp;
			}
		}
		/// <summary>
		/// Gets Sender header field
		/// </summary>
		/// <value>Sender header body</value>
		public System.String Sender {
			get {
				System.String tmp = this.getProperty("Sender");
				if ( tmp==null )
					tmp = System.String.Empty;
				else
					tmp = anmar.SharpMimeTools.SharpMimeTools.uncommentString ( tmp );
				return tmp;
			}
		}
		/// <summary>
		/// Gets Subject header field
		/// </summary>
		/// <value>Subject header body</value>
		public System.String Subject {
			get {
				System.String tmp = this.getProperty("Subject");
				if ( tmp==null )
					tmp = System.String.Empty;
				return tmp;
			}
		}
		/// <summary>
		/// Gets SubType from Content-Type header field
		/// </summary>
		/// <value>SubType from Content-Type header field</value>
		public System.String SubType {
			get {
				this.parse();
				return this.mt.subtype;
			}
		}
		/// <summary>
		/// Gets To header field
		/// </summary>
		/// <value>To header body</value>
		public System.String To {
			get {
				System.String tmp = this.getProperty("To");
				if ( tmp==null )
					tmp = System.String.Empty;
				else
					tmp = anmar.SharpMimeTools.SharpMimeTools.uncommentString ( tmp );
				return tmp;
			}
		}
		/// <summary>
		/// Gets top-level media type from Content-Type header field
		/// </summary>
		/// <value>Top-level media type from Content-Type header field</value>
		public anmar.SharpMimeTools.MimeTopLevelMediaType TopLevelMediaType {
			get {
				this.parse();
				return this.mt.TopLevelMediaType;
			}
		}
		/// <summary>
		/// Gets Version header field
		/// </summary>
		/// <value>Version header body</value>
		public System.String Version {
			get {
				System.String tmp = this.getProperty("Version");
				if ( tmp==null )
					tmp = "1.0";
				else
					tmp = anmar.SharpMimeTools.SharpMimeTools.uncommentString ( tmp );
				return tmp;
			}
		}
	}
	/// <summary>
	/// RFC 2046 Initial top-level media types
	/// </summary>
	public enum MimeTopLevelMediaType {
		/// <summary>
		/// RFC 2046 section 4.1
		/// </summary>
		text,
		/// <summary>
		/// RFC 2046 section 4.2
		/// </summary>
		image,
		/// <summary>
		/// RFC 2046 section 4.3
		/// </summary>
		audio,
		/// <summary>
		/// RFC 2046 section 4.4
		/// </summary>
		video,
		/// <summary>
		/// RFC 2046 section 4.5
		/// </summary>
		application,
		/// <summary>
		/// RFC 2046 section 5.1
		/// </summary>
		multipart,
		/// <summary>
		/// RFC 2046 section 5.2
		/// </summary>
		message
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -