Share via


HoldSettings.IsOnHold method (String)

Checks whether the specified URL is on hold and returns the date that the last hold was added.

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

Syntax

'Declaration
Public Function IsOnHold ( _
    serverRelativeUrl As String _
) As Boolean
'Usage
Dim instance As HoldSettings
Dim serverRelativeUrl As String
Dim returnValue As Boolean

returnValue = instance.IsOnHold(serverRelativeUrl)
public bool IsOnHold(
    string serverRelativeUrl
)

Parameters

  • serverRelativeUrl
    Type: System.String

    Server-relative URL of a web.

Return value

Type: System.Boolean
The date that the last hold was added.

See also

Reference

HoldSettings class

HoldSettings members

IsOnHold overload

Microsoft.Office.RecordsManagement.Preservation namespace