Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have to do two things:</p> <p>Set the appropiate permissions:</p> <pre><code>var folder = Folder.Bind(service, WellKnownFolderName.Calendar); folder.Permissions.Add(new FolderPermission("someone@yourcompany.com", FolderPermissionLevel.Reviewer)); folder.Update(); </code></pre> <p>Then, send an invitation message. Now, this is the hard part. The message format is specifified in <a href="http://msdn.microsoft.com/en-us/library/cc433485(v=EXCHG.80).aspx" rel="nofollow noreferrer">[MS-OXSHARE]: Sharing Message Object Protocol Specification</a>. The extended properties are defined in <a href="http://msdn.microsoft.com/en-us/library/cc433490(v=exchg.80).aspx" rel="nofollow noreferrer">[MS-OXPROPS]: Exchange Server Protocols Master Property List</a>. You need to create a message according to that specification and send it to the recipient.</p> <p>EDITED:</p> <p>To set the sharing properties on the element, use extended properties.</p> <p>First, define the properties. For example, the PidLidSharingProviderGuidProperty is defined as follows:</p> <pre><code>private static readonly Guid PropertySetSharing = new Guid("{00062040-0000-0000-C000-000000000046}"); private static readonly ExtendedPropertyDefinition PidLidSharingProviderGuidProperty = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A01, MapiPropertyType.CLSID); private static readonly ExtendedPropertyDefinition ConversationIdProperty = new ExtendedPropertyDefinition(0x3013, MapiPropertyType.Binary); </code></pre> <p>You can then set the property on a new item using the SetExtendedProperty method:</p> <pre><code>item.SetExtendedProperty(PidLidSharingProviderGuidProperty, "somevalue"); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload