共用方式為


Parent 屬性

Gets the Database object that is the parent of the DefaultCollection object.

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

語法

'宣告
Public ReadOnly Property Parent As Database
    Get
'用途
Dim instance As DefaultCollection
Dim value As Database

value = instance.Parent
public Database Parent { get; }
public:
property Database^ Parent {
    Database^ get ();
}
member Parent : Database
function get Parent () : Database

屬性值

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

範例

使用集合