GetSharingMetadataType Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The GetSharingMetadataType class represents a request to get an opaque authentication token that identifies the sharing invitation.
public ref class GetSharingMetadataType : ExchangeWebServices::BaseRequestType
public class GetSharingMetadataType : ExchangeWebServices.BaseRequestType
Public Class GetSharingMetadataType
Inherits BaseRequestType
- Inheritance
Examples
The following code example shows you how to get an opaque authentication token that identifies a sharing invitation. In this example, user1@contoso.com wants to share its contacts folder with user1@fabikam.com and user2@test.com. IdOfContactsFolder represents the FolderIdType object that corresponds to the contacts folder of user1@contoso.com.
static void GetSharingMetadataTest(ExchangeServiceBinding esb)
{
// Create the sharing request.
GetSharingMetadataType gsmRequest = new GetSharingMetadataType();
// Specify the identifier of the folder to be shared.
gsmRequest.IdOfFolderToShare = <span class="label">IdOfContactsFolder</span>;
// Specify the sender of the request and the intended recipients.
gsmRequest.SenderSmtpAddress = "user1@contoso.com";
gsmRequest.Recipients = new string[] { "user1@fabrikam.com", "user2@test.com" };
try
{
// Submit the request and get the response.
GetSharingMetadataResponseMessageType gsmResponse = esb.GetSharingMetadata(gsmRequest);
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
Constructors
GetSharingMetadataType() |
The GetSharingMetadataType constructor initializes a new instance of the GetSharingMetadataType class. |
Properties
IdOfFolderToShare |
The IdOfFolderToShare property gets or sets an FolderIdType object that identifies the folder to share. |
Recipients |
The Recipients property gets or sets a string that contains the SMTP e-mail addresses of one or more entities that will be invited to share data in the folder that is specified by the IdOfFolderToShare property. |
SenderSmtpAddress |
The SenderSmtpAddress property gets or sets the SMTP e-mail address that corresponds to the mailbox that contains the folder that is identified by the IdOfFolderToShare property. |