GetSharingFolderType class
The Exchange Web Services (EWS) autogenerated proxy object models that are created by .NET Framework proxy generators are deemphasized and we do not recommend that you use them for new .NET Framework client development. We recommend that you use the EWS Managed API to develop clients that target the .NET Framework. We recommend that you use the EWS Java API to develop clients that target the Java platform. For more information about the EWS Managed API, see Explore the EWS Managed API.
The GetSharingFolderType class represents a request to get the local folder identifier of a specified shared folder.
Assembly: EWS (in EWS.dll)
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); } }