Dela via


Column.Parent Property

Gets the SqlSmoObject object that is the parent of the Column object.

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

Syntax

'Declaration
<SfcParentAttribute("Table")> _
<SfcParentAttribute("Statistic")> _
<SfcParentAttribute("ForeignKey")> _
<SfcParentAttribute("UserDefinedTableType")> _
<SfcParentAttribute("UserDefinedFunction")> _
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)> _
<SfcParentAttribute("View")> _
<SfcParentAttribute("Rule")> _
<SfcParentAttribute("Default")> _
Public Property Parent As SqlSmoObject
    Get
    Set
'Usage
Dim instance As Column
Dim value As SqlSmoObject

value = instance.Parent

instance.Parent = value
[SfcParentAttribute("Table")]
[SfcParentAttribute("Statistic")]
[SfcParentAttribute("ForeignKey")]
[SfcParentAttribute("UserDefinedTableType")]
[SfcParentAttribute("UserDefinedFunction")]
[SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)]
[SfcParentAttribute("View")]
[SfcParentAttribute("Rule")]
[SfcParentAttribute("Default")]
public SqlSmoObject Parent { get; set; }
[SfcParentAttribute(L"Table")]
[SfcParentAttribute(L"Statistic")]
[SfcParentAttribute(L"ForeignKey")]
[SfcParentAttribute(L"UserDefinedTableType")]
[SfcParentAttribute(L"UserDefinedFunction")]
[SfcObjectAttribute(SfcObjectRelationship::ParentObject, SfcObjectFlags::Design)]
[SfcParentAttribute(L"View")]
[SfcParentAttribute(L"Rule")]
[SfcParentAttribute(L"Default")]
public:
property SqlSmoObject^ Parent {
    SqlSmoObject^ get ();
    void set (SqlSmoObject^ value);
}
[<SfcParentAttribute("Table")>]
[<SfcParentAttribute("Statistic")>]
[<SfcParentAttribute("ForeignKey")>]
[<SfcParentAttribute("UserDefinedTableType")>]
[<SfcParentAttribute("UserDefinedFunction")>]
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)>]
[<SfcParentAttribute("View")>]
[<SfcParentAttribute("Rule")>]
[<SfcParentAttribute("Default")>]
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 that owns the Column object.