Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetSharingFolderType class
Collapse the table of content
Expand the table of content

GetSharingFolderType class

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

System.Object
  ExchangeWebServices.BaseRequestType
    ExchangeWebServices.GetSharingFolderType

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

'Declaration
<SerializableAttribute> _
Public Class GetSharingFolderType _
	Inherits BaseRequestType
'Usage
Dim instance As GetSharingFolderType

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); 
    }
}

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft