Share via


UserDefinedDataType.Parent Property

Gets or sets the Database object that is the parent of the UserDefinedDataType object.

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

Syntax

'Declaration
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)> _
Public Property Parent As Database 
    Get 
    Set
'Usage
Dim instance As UserDefinedDataType 
Dim value As Database 

value = instance.Parent

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

Property Value

Type: Microsoft.SqlServer.Management.Smo.Database
A Database object specifies the parent of the UserDefinedDataType object.

Examples

Working with Data Types

See Also

Reference

UserDefinedDataType Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Data Types (Database Engine)

CREATE TYPE (Transact-SQL)