次の方法で共有


_NameSpace.CreateSharingItem Method

Creates a new SharingItem object.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Function CreateSharingItem ( _
    Context As Object, _
    Provider As Object _
) As SharingItem
'Usage
Dim instance As _NameSpace
Dim Context As Object
Dim Provider As Object
Dim returnValue As SharingItem

returnValue = instance.CreateSharingItem(Context, _
    Provider)
[DispIdAttribute()]
SharingItem CreateSharingItem(
    Object Context,
    Object Provider
)

Parameters

  • Context
    Type: System.Object

    Either a String (string in C#) value or a Folder object representing the sharing context to be used.

Return Value

Type: Microsoft.Office.Interop.Outlook.SharingItem
A SharingItem object that represents a sharing message for the specified context.

Remarks

If a String (string in C#) 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.

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

See Also

Reference

_NameSpace Interface

_NameSpace Members

Microsoft.Office.Interop.Outlook Namespace