共用方式為


IndexedColumn.IsIncluded 屬性

Gets or sets the Boolean property value that specifies whether the column is included in the index.

命名空間:  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 IsIncluded As Boolean 
    Get 
    Set
'用途
Dim instance As IndexedColumn 
Dim value As Boolean 

value = instance.IsIncluded

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

屬性值

型別:System.Boolean
A Boolean value that specifies whether the column is included in the index.If True, the column is included in the index.If False (default), the column is not included in the index.

範例

建立、改變和移除索引

請參閱

參考

IndexedColumn 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

索引

CREATE INDEX (Transact-SQL)