GetSharingFolderType Class

Definition

The GetSharingFolderType class represents a request to get the local folder identifier of a specified shared folder.

public ref class GetSharingFolderType : ExchangeWebServices::BaseRequestType
public class GetSharingFolderType : ExchangeWebServices.BaseRequestType
Public Class GetSharingFolderType
Inherits BaseRequestType
Inheritance
GetSharingFolderType

Examples

The following code example shows you how to get the local folder identifier of a specified shared folder. In this example, the shared folder is the Calendar folder that is owned by 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); 
    }
}

Constructors

GetSharingFolderType()

The GetSharingFolderType constructor initializes a new instance of the GetSharingFolderType class.

Properties

DataType

The DataType gets or sets an SharingDataType enumeration value that describes the type of data that is shared by a shared folder.

DataTypeSpecified

The DataTypeSpecified property gets or sets a Boolean value that specifies whether the DataType property is serialized into the SOAP request.

SharedFolderId

The SharedFolderId property gets or sets a string value that contains the unique identifier of the shared folder whose local folder identifier should be returned.

SmtpAddress

The SmtpAddress property gets or sets the SMTP e-mail address of the other party in the sharing relationship.

Applies to