Compartilhar via


Hold.SetLockHoldItemsProperty Method

Set the setting of whether items on hold in the specified site should be locked (block edit).

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

Syntax

'Declaration
Public Shared Sub SetLockHoldItemsProperty ( _
    site As SPSite, _
    isLocked As Boolean _
)
'Usage
Dim site As SPSite
Dim isLocked As BooleanHold.SetLockHoldItemsProperty(site, _
    isLocked)
public static void SetLockHoldItemsProperty(
    SPSite site,
    bool isLocked
)

Parameters

  • isLocked
    Type: System.Boolean

    A Boolean that indicates whether to set or reset the setting.

Remarks

This setting is scoped to the web application.

See Also

Reference

Hold Class

Hold Members

Microsoft.Office.RecordsManagement.Holds Namespace