Index.DisallowPageLocks 属性

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design Or SfcPropertyFlags.Deploy)> _
Public Property DisallowPageLocks As Boolean 
    Get 
    Set
用法
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)

属性值

类型: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).

注释

When this property is True, page locks are not used. Access to the specified index is obtained with row-level and table-level locks.

注意注意

  For indexes based on the UserDefinedTableType object the value of DisallowRowLocks is provided by sys.indexes and the value of DisallowPageLocks property is ignored.

示例

创建、更改和删除索引

请参阅

参考

Index 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

索引

CREATE INDEX (Transact-SQL)