GrapeCity Secure Mail for .NET 4.0J
Attachment コンストラクタ(String,String)

Contentの初期化に使用されます。
ContentDisposition.FileNameおよびContentType.MediaTypeの初期化に使用されます。
新しいAttachmentを作成して既存のファイルに関連付けるために使用するコンストラクタ。
シンタックス
Public Function New( _
   ByVal filePath As String, _
   ByVal fileName As String _
)
public Attachment( 
   string filePath,
   string fileName
)

パラメータ

filePath
Contentの初期化に使用されます。
fileName
ContentDisposition.FileNameおよびContentType.MediaTypeの初期化に使用されます。
解説
ContentType.MediaTypeGetMediaTypeFromExtensionを使用して設定されます。 TransferEncodingTransferEncoding.Base64に設定されます。ContentDisposition.Inlineはfalseに初期化されます。添付ファイルを本文中にインラインで表示する場合は、ContentDisposition.Inlineをtrueに設定できます。
参照

参照

Attachment クラス
Attachment メンバ
オーバーロード一覧

 

 


© 2003, GrapeCity inc. All rights reserved.