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
- parent
Type: Microsoft.SqlServer.Management.Smo.Database
A Database object value that specifies the database to which the master key belongs.
Examples
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace