AttachmentCollection.AddFileAttachment メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
AddFileAttachment(String) |
コレクションに添付ファイルを追加します。 |
AddFileAttachment(String, Byte[]) |
ファイルを含むコレクションに添付ファイルを追加します。 |
AddFileAttachment(String, Stream) |
ファイルを含むデータ ストリームを使用して、添付ファイルをコレクションに追加します。 |
AddFileAttachment(String, String) |
コレクションに添付ファイルを追加します。 |
AddFileAttachment(String)
コレクションに添付ファイルを追加します。
public:
Microsoft::Exchange::WebServices::Data::FileAttachment ^ AddFileAttachment(System::String ^ fileName);
public Microsoft.Exchange.WebServices.Data.FileAttachment AddFileAttachment (string fileName);
Public Function AddFileAttachment (fileName As String) As FileAttachment
パラメーター
- fileName
- String
コレクションに追加するファイルへのパス。
戻り値
添付ファイル。
適用対象
AddFileAttachment(String, Byte[])
ファイルを含むコレクションに添付ファイルを追加します。
public:
Microsoft::Exchange::WebServices::Data::FileAttachment ^ AddFileAttachment(System::String ^ name, cli::array <System::Byte> ^ content);
public Microsoft.Exchange.WebServices.Data.FileAttachment AddFileAttachment (string name, byte[] content);
Public Function AddFileAttachment (name As String, content As Byte()) As FileAttachment
パラメーター
- name
- String
添付ファイルの表示名。
- content
- Byte[]
添付ファイルの内容を表すバイト配列。
戻り値
添付ファイル。
適用対象
AddFileAttachment(String, Stream)
ファイルを含むデータ ストリームを使用して、添付ファイルをコレクションに追加します。
public:
Microsoft::Exchange::WebServices::Data::FileAttachment ^ AddFileAttachment(System::String ^ name, System::IO::Stream ^ contentStream);
public Microsoft.Exchange.WebServices.Data.FileAttachment AddFileAttachment (string name, System.IO.Stream contentStream);
Public Function AddFileAttachment (name As String, contentStream As Stream) As FileAttachment
パラメーター
- name
- String
添付ファイルの表示名。
- contentStream
- Stream
コレクションにアタッチするファイルを含むデータ ストリーム。
戻り値
添付ファイル。
適用対象
AddFileAttachment(String, String)
コレクションに添付ファイルを追加します。
public:
Microsoft::Exchange::WebServices::Data::FileAttachment ^ AddFileAttachment(System::String ^ name, System::String ^ fileName);
public Microsoft.Exchange.WebServices.Data.FileAttachment AddFileAttachment (string name, string fileName);
Public Function AddFileAttachment (name As String, fileName As String) As FileAttachment
パラメーター
- name
- String
添付ファイルの表示名。
- fileName
- String
添付ファイルのファイル名。
戻り値
添付ファイル。