MasterKey.Create Method (String)

Creates a master key that has the specified password.

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

Syntax

'Declaration
Public Sub Create ( _
    encryptionPassword As String _
)
'Usage
Dim instance As MasterKey
Dim encryptionPassword As String

instance.Create(encryptionPassword)
public void Create(
    string encryptionPassword
)
public:
void Create(
    String^ encryptionPassword
)
member Create : 
        encryptionPassword:string -> unit 
public function Create(
    encryptionPassword : String
)

Parameters

  • encryptionPassword
    Type: System.String
    A String value that specifies the password with which to encrypt the master key.

Examples

Calling Methods