次の方法で共有


CalendarSharing Interface

Represents a set of utilities for sharing calendar information.

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

Syntax

'Declaration
<GuidAttribute("000630E2-0000-0000-C000-000000000046")> _
<CoClassAttribute(GetType(CalendarSharingClass))> _
Public Interface CalendarSharing _
    Inherits _CalendarSharing
'Usage
Dim instance As CalendarSharing
[GuidAttribute("000630E2-0000-0000-C000-000000000046")]
[CoClassAttribute(typeof(CalendarSharingClass))]
public interface CalendarSharing : _CalendarSharing

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _CalendarSharing.

You can use the GetCalendarExporter method of a Folder object that represents a calendar folder to create a CalendarSharing object. The GetCalendarExporter method can only be used on calendar folders. An error occurs if you use the method on Folder objects that represent other folder types.

You can use the SaveAsICal method to save calendar information in an iCalendar (.ics) file for sharing a calendar as a URL, or use the ForwardAsICal method to create a MailItem for sharing a calendar as a payload.

Note

The CalendarSharing object only supports exporting the iCalendar format.

See Also

Reference

CalendarSharing Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Share Free/Busy Schedule Within a Specified Period in a Calendar

How to: Share Calendar Information Through E-Mail

How to: Save a Calendar to Disk