Share via


MasterKey Constructor (Database)

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

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

Syntax

'Declaration
Public Sub New ( _
    parent As Database _
)
'Usage
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
)

Parameters

Examples

Calling Methods

See Also

Reference

MasterKey Class

MasterKey Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Encryption Hierarchy

CREATE MASTER KEY (Transact-SQL)