ListPolicySettings.GetUniquePolicyParentUrl method

Finds the unique parent folder with a policy above the specified folder.

Namespace:  Microsoft.Office.RecordsManagement.InformationPolicy
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)

Syntax

'Declaration
Public Function GetUniquePolicyParentUrl ( _
    leafUrl As String, _
    <OutAttribute> ByRef retentionPolicy As String _
) As String
'Usage
Dim instance As ListPolicySettings
Dim leafUrl As String
Dim retentionPolicy As String
Dim returnValue As String

returnValue = instance.GetUniquePolicyParentUrl(leafUrl, _
    retentionPolicy)
public string GetUniquePolicyParentUrl(
    string leafUrl,
    out string retentionPolicy
)

Parameters

  • leafUrl
    Type: System.String

    The server-relative URL of the folder to look up from.

  • retentionPolicy
    Type: System.String

    The XML for the policy associated with the parent folder/root folder.

Return value

Type: System.String
Returns the URL of the parent folder with a unique retention schedule, if one exists; otherwise, returns an empty String.

See also

Reference

ListPolicySettings class

ListPolicySettings members

Microsoft.Office.RecordsManagement.InformationPolicy namespace