Aracılığıyla paylaş


Index.Parent Property

Gets or sets the SqlSmoObject object that is the parent of the Index object.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Bildirim
<SfcParentAttribute("UserDefinedTableType")> _
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)> _
<SfcParentAttribute("Table")> _
<SfcParentAttribute("View")> _
<SfcParentAttribute("UserDefinedFunction")> _
Public Property Parent As SqlSmoObject
    Get
    Set
'Kullanım
Dim instance As Index
Dim value As SqlSmoObject

value = instance.Parent

instance.Parent = value
[SfcParentAttribute("UserDefinedTableType")]
[SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)]
[SfcParentAttribute("Table")]
[SfcParentAttribute("View")]
[SfcParentAttribute("UserDefinedFunction")]
public SqlSmoObject Parent { get; set; }
[SfcParentAttribute(L"UserDefinedTableType")]
[SfcObjectAttribute(SfcObjectRelationship::ParentObject, SfcObjectFlags::Design)]
[SfcParentAttribute(L"Table")]
[SfcParentAttribute(L"View")]
[SfcParentAttribute(L"UserDefinedFunction")]
public:
property SqlSmoObject^ Parent {
    SqlSmoObject^ get ();
    void set (SqlSmoObject^ value);
}
[<SfcParentAttribute("UserDefinedTableType")>]
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)>]
[<SfcParentAttribute("Table")>]
[<SfcParentAttribute("View")>]
[<SfcParentAttribute("UserDefinedFunction")>]
member Parent : SqlSmoObject with get, set
function get Parent () : SqlSmoObject
function set Parent (value : SqlSmoObject)

Property Value

Type: Microsoft.SqlServer.Management.Smo.SqlSmoObject
A SqlSmoObject object value that specifies the parent of the Index object.

Examples

Creating, Altering, and Removing Indexes

See Also

Reference

Index Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Indexes

CREATE INDEX (Transact-SQL)