GetSharingFolderType 类

定义

GetSharingFolderType 表示获取指定共享文件夹的本地文件夹标识符的请求。

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

示例

下面的代码示例演示如何获取指定共享文件夹的本地文件夹标识符。 在此示例中,共享文件夹是 拥有的 user1@contoso.com日历文件夹。

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

获取 DataType 或设置一个 SharingDataType 枚举值,该值描述共享文件夹共享的数据类型。

DataTypeSpecified

属性 DataTypeSpecified 获取或设置一个布尔值,该值指定属性是否 DataType 序列化为 SOAP 请求。

SharedFolderId

属性 SharedFolderId 获取或设置一个字符串值,该值包含应返回其本地文件夹标识符的共享文件夹的唯一标识符。

SmtpAddress

属性 SmtpAddress 获取或设置共享关系中另一方的 SMTP 电子邮件地址。

适用于