共用方式為


SPSiteSubscription.Create Method

Creates a site subscription object.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared Function Create As SPSiteSubscription
'Usage
Dim returnValue As SPSiteSubscription

returnValue = SPSiteSubscription.Create()
public static SPSiteSubscription Create()

Return Value

Type: Microsoft.SharePoint.SPSiteSubscription
SPSiteSubscription
A new site subscription object.

Exceptions

Exception Condition
InvalidOperationException

A local farm object is not available.

See Also

Reference

SPSiteSubscription Class

SPSiteSubscription Members

Microsoft.SharePoint Namespace