共用方式為


IndexedColumn.Parent 屬性

Gets the Index object that is the parent of the IndexedColumn object.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.None Or SfcObjectFlags.Design Or SfcObjectFlags.Deploy)> _
Public Property Parent As Index 
    Get 
    Set
'用途
Dim instance As IndexedColumn 
Dim value As Index 

value = instance.Parent

instance.Parent = value
[SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.None|SfcObjectFlags.Design|SfcObjectFlags.Deploy)]
public Index Parent { get; set; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject, SfcObjectFlags::None|SfcObjectFlags::Design|SfcObjectFlags::Deploy)]
public:
property Index^ Parent {
    Index^ get ();
    void set (Index^ value);
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.None|SfcObjectFlags.Design|SfcObjectFlags.Deploy)>]
member Parent : Index with get, set
function get Parent () : Index 
function set Parent (value : Index)

屬性值

型別:Microsoft.SqlServer.Management.Smo.Index
An Index object value that specifies the parent of the IndexedColumn object.

範例

建立、改變和移除索引

請參閱

參考

IndexedColumn 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

索引

CREATE INDEX (Transact-SQL)