共用方式為


UserDefinedFunction.Parent 屬性

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

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

語法

'宣告
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)> _
Public Property Parent As Database 
    Get 
    Set
'用途
Dim instance As UserDefinedFunction 
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)

屬性值

型別:Microsoft.SqlServer.Management.Smo.Database
A Database object value that is the parent of the UserDefinedFunction object.

範例

設定屬性

請參閱

參考

UserDefinedFunction 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

使用者定義函數 (Database Engine)

CREATE FUNCTION (Transact-SQL)