The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NameSpace.CreateSharingItem Method

Office 2007
Creates a new SharingItem object.

Version Information
 Version Added:  Outlook 2007


expression.CreateSharingItem(Context, Provider)

expression   An expression that returns a NameSpace object.


NameRequired/OptionalData TypeDescription
ContextRequiredVariantEither a String value or a Folder object representing the sharing context to be used.
ProviderOptionalVariantAn OlSharingProvider value representing the sharing provider to be used.

Return Value
A SharingItem object that represents a sharing message for the specified context.


If a String value is specified in

Context, the method assumes that a URL has been provided as a sharing context. If a Folder object is specified in Context, the method attempts to discover the sharing context from the folder. If no sharing context exists, or if more than one sharing context exists, an error occurs.


Provider is not specified, the method attempts to use the appropriate sharing provider for the value specified in Context.

Community Additions