HoldSettings.ReleaseFromHold method
Release a hold from the web pointed to by the URL with the specified case ID, hold ID, query, and QBE query.
Namespace: Microsoft.Office.RecordsManagement.Preservation
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Function ReleaseFromHold ( _
caseId As Guid, _
holdId As Guid, _
serverRelativeUrl As String, _
query As String, _
<OutAttribute> ByRef errorMessage As String _
) As HoldStatus
'Usage
Dim instance As HoldSettings
Dim caseId As Guid
Dim holdId As Guid
Dim serverRelativeUrl As String
Dim query As String
Dim errorMessage As String
Dim returnValue As HoldStatus
returnValue = instance.ReleaseFromHold(caseId, _
holdId, serverRelativeUrl, query, _
errorMessage)
public HoldStatus ReleaseFromHold(
Guid caseId,
Guid holdId,
string serverRelativeUrl,
string query,
out string errorMessage
)
Parameters
caseId
Type: System.GuidThe case ID of the hold being released
holdId
Type: System.GuidThe hold ID of the hold being released
serverRelativeUrl
Type: System.StringThe URL of the web to release the hold from
query
Type: System.StringThe query of the hold being released
- errorMessage
Type: System.String
Return value
Type: Microsoft.Office.RecordsManagement.Preservation.HoldStatus
Whether the action succeeded or failed, and return the HoldInfo object that is created.