共用方式為


MasterKey 建構 (Database)

Initializes a new instance of the MasterKey class on the specified database.

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

語法

'宣告
Public Sub New ( _
    parent As Database _
)
'用途
Dim parent As Database

Dim instance As New MasterKey(parent)
public MasterKey(
    Database parent
)
public:
MasterKey(
    Database^ parent
)
new : 
        parent:Database -> MasterKey
public function MasterKey(
    parent : Database
)

範例

呼叫方法