HoldSettings.IsOnHold method (String, DateTime)
Checks whether the given URL is on hold and gets the last hold added date.
Namespace: Microsoft.Office.RecordsManagement.Preservation
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Function IsOnHold ( _
serverRelativeUrl As String, _
<OutAttribute> ByRef lastHoldAddedDate As DateTime _
) As Boolean
'Usage
Dim instance As HoldSettings
Dim serverRelativeUrl As String
Dim lastHoldAddedDate As DateTime
Dim returnValue As Boolean
returnValue = instance.IsOnHold(serverRelativeUrl, _
lastHoldAddedDate)
public bool IsOnHold(
string serverRelativeUrl,
out DateTime lastHoldAddedDate
)
Parameters
serverRelativeUrl
Type: System.Stringserver relative URL of a web
lastHoldAddedDate
Type: System.DateTimethe DateTime the last hold is added
Return value
Type: System.Boolean