Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the policy that is applied on the site.
Namespace: Microsoft.SharePoint.Client.InformationPolicy
Assembly: Microsoft.Office.Client.Policy (in Microsoft.Office.Client.Policy.dll)
Syntax
'Declaration
Public Shared Function GetCurrentlyAppliedProjectPolicyOnWeb ( _
context As ClientRuntimeContext, _
web As Web _
) As ProjectPolicy
'Usage
Dim context As ClientRuntimeContext
Dim web As Web
Dim returnValue As ProjectPolicy
returnValue = ProjectPolicy.GetCurrentlyAppliedProjectPolicyOnWeb(context, _
web)
public static ProjectPolicy GetCurrentlyAppliedProjectPolicyOnWeb(
ClientRuntimeContext context,
Web web
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
web
Type: Microsoft.SharePoint.Client.WebThe site.
Return value
Type: Microsoft.SharePoint.Client.InformationPolicy.ProjectPolicy
The policy that is applied on the site. a null reference (Nothing in Visual Basic) if there is no policy applied on the site.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The web parameter is a null reference (Nothing in Visual Basic). |