SPPolicyStore.GetPolicyRule method
Namespace: Microsoft.SharePoint.Client.CompliancePolicy
Assembly: Microsoft.Office.Client.Policy (in Microsoft.Office.Client.Policy.dll)
Syntax
'Declaration
Public Function GetPolicyRule ( _
policyRuleId As Guid, _
throwIfNull As Boolean _
) As SPPolicyRule
'Usage
Dim instance As SPPolicyStore
Dim policyRuleId As Guid
Dim throwIfNull As Boolean
Dim returnValue As SPPolicyRule
returnValue = instance.GetPolicyRule(policyRuleId, _
throwIfNull)
public SPPolicyRule GetPolicyRule(
Guid policyRuleId,
bool throwIfNull
)
Parameters
- policyRuleId
Type: System.Guid
- throwIfNull
Type: System.Boolean
Return value
Type: Microsoft.SharePoint.Client.CompliancePolicy.SPPolicyRule