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

Return value

Type: Microsoft.SharePoint.Client.CompliancePolicy.SPPolicyRule

See also

Reference

SPPolicyStore class

SPPolicyStore members

Microsoft.SharePoint.Client.CompliancePolicy namespace