Proprietà DisallowPageLocks
Gets or sets the Boolean property value that specifies whether the index allows page locks.
Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
<SfcPropertyAttribute> _
Public Property DisallowPageLocks As Boolean
Get
Set
'Utilizzo
Dim instance As Index
Dim value As Boolean
value = instance.DisallowPageLocks
instance.DisallowPageLocks = value
[SfcPropertyAttribute]
public bool DisallowPageLocks { get; set; }
[SfcPropertyAttribute]
public:
property bool DisallowPageLocks {
bool get ();
void set (bool value);
}
[<SfcPropertyAttribute>]
member DisallowPageLocks : bool with get, set
function get DisallowPageLocks () : boolean
function set DisallowPageLocks (value : boolean)
Valore proprietà
Tipo: System. . :: . .Boolean
A Boolean value that specifies the whether the index allows page locks.
If True, page locks are not allowed on the index. Otherwise, False (default).
Osservazioni
When this property is True, page locks are not used. Access to the specified index is obtained with row-level and table-level locks.
[!NOTA]
For indexes based on the UserDefinedTableType object the value of DisallowRowLocks is provided by sys.indexes and the value of DisallowPageLocks property is ignored.
Vedere anche