共用方式為


SPServiceProvisioningContext Class

Provides consumable information for service applications to use when they are provisioned..

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPServiceProvisioningContext

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPServiceProvisioningContext
'Usage
Dim instance As SPServiceProvisioningContext
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPServiceProvisioningContext

Remarks

SPServiceProvisioningContext is only used to provision a service application in two cases: A single-click installation where provisioning happens when running Psconfig.exe, and the farm configuration wizard.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPServiceProvisioningContext Members

Microsoft.SharePoint.Administration Namespace