Hold Class
Represents specific properties of a hold.
Inheritance Hierarchy
System.Object
Microsoft.Office.RecordsManagement.Holds.Hold
Namespace: Microsoft.Office.RecordsManagement.Holds
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class Hold
'Usage
Dim instance As Hold
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class Hold
Remarks
Holds can be placed on documents to exempt them from the enforcement of the expiration policy that is applied to them. You can also use them to prevent the modification and deletion of documents. Holds are stored as list items on a specified list in the Records Center site. As such, you can manipulate many of the properties of a hold programmatically by accessing the SPListItem object that represents that hold.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.