Compartir a través de


Index.DisallowPageLocks Propiedad

Gets or sets the Boolean property value that specifies whether the index allows page locks.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design Or SfcPropertyFlags.Deploy)> _
Public Property DisallowPageLocks As Boolean 
    Get 
    Set
'Uso
Dim instance As Index 
Dim value As Boolean 

value = instance.DisallowPageLocks

instance.DisallowPageLocks = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design|SfcPropertyFlags.Deploy)]
public bool DisallowPageLocks { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design|SfcPropertyFlags::Deploy)]
public:
property bool DisallowPageLocks {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design|SfcPropertyFlags.Deploy)>]
member DisallowPageLocks : bool with get, set
function get DisallowPageLocks () : boolean 
function set DisallowPageLocks (value : boolean)

Valor de la propiedad

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).

Comentarios

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.

Ejemplos

Crear, modificar y eliminar índices

Vea también

Referencia

Index Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Índices

CREATE INDEX (Transact-SQL)