GetMediaSubType() public static method

Gets the type of the media sub.
public static GetMediaSubType ( string mediaType ) : string
mediaType string /// Type of the media. ///
return string
コード例 #1
0
ファイル: MimeEntity.cs プロジェクト: seif/papercut-web
 /// <summary>
 /// Sets the type of the content.
 /// </summary>
 /// <param name="contentType">
 /// Type of the content.
 /// </param>
 internal void SetContentType(ContentType contentType)
 {
     this._contentType           = contentType;
     this._contentType.MediaType = MimeReader.GetMediaType(contentType.MediaType);
     this._mediaMainType         = MimeReader.GetMediaMainType(contentType.MediaType);
     this._mediaSubType          = MimeReader.GetMediaSubType(contentType.MediaType);
 }