Share via


HoldInfo.Query property

Gets the query that is used to preserve content.

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

Syntax

'Declaration
Public Property Query As String
    Get
    Friend Set
'Usage
Dim instance As HoldInfo
Dim value As String

value = instance.Query
public string Query { get; internal set; }

Property value

Type: System.String
A query that is used to preserve content.

Remarks

Preserved content matching this query will not be expired in sites with query based expiration enabled. This field is populated when creating a new hold, or by one of the overloads of PopulateHoldQueryInfo() method.

See also

Reference

HoldInfo class

HoldInfo members

Microsoft.Office.RecordsManagement.Preservation namespace