次の方法で共有


GetSharingFolderType クラス

定義

クラスは GetSharingFolderType 、指定された共有フォルダーのローカル フォルダー識別子を取得する要求を表します。

public ref class GetSharingFolderType : ExchangeWebServices::BaseRequestType
public class GetSharingFolderType : ExchangeWebServices.BaseRequestType
Public Class GetSharingFolderType
Inherits BaseRequestType
継承
GetSharingFolderType

次のコード例は、指定した共有フォルダーのローカル フォルダー識別子を取得する方法を示しています。 この例では、共有フォルダーは によって user1@contoso.com所有されている Calendar フォルダーです。

static void GetSharingFolderTest(ExchangeServiceBinding esb)
{
    // Create the request.
    GetSharingFolderType gsfRequest = new GetSharingFolderType();

    // Specify the SMTP address of the mailbox that contains the folder that is being shared.
    gsfRequest.SmtpAddress = "user1@contoso.com";

    // Specify the type of data that is being shared.
    gsfRequest.DataType = SharingDataType.Calendar;
    gsfRequest.DataTypeSpecified = true; 

    try
    {
      // Send the request and get the response.
      GetSharingFolderResponseMessageType gsfResponse = esb.GetSharingFolder(gsfRequest); 
    }
    catch (Exception e) 
    {
      Console.WriteLine(e.Message); 
    }
}

コンストラクター

GetSharingFolderType()

コンストラクターは GetSharingFolderType 、 クラスの新しいインスタンスを GetSharingFolderType 初期化します。

プロパティ

DataType

DataTypeSharingDataType 共有フォルダーによって共有されるデータの種類を記述する列挙値を取得または設定します。

DataTypeSpecified

プロパティは DataTypeSpecified 、プロパティを SOAP 要求にシリアル化するかどうかを DataType 指定するブール値を取得または設定します。

SharedFolderId

プロパティは SharedFolderId 、ローカル フォルダー識別子を返す共有フォルダーの一意の識別子を含む文字列値を取得または設定します。

SmtpAddress

プロパティは SmtpAddress 、共有関係の相手の SMTP 電子メール アドレスを取得または設定します。

適用対象