MasterKey.Open Method

Opens the database master key by using the specified password.

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

Syntax

'Declaration
Public Sub Open ( _
    password As String _
)
'Usage
Dim instance As MasterKey
Dim password As String

instance.Open(password)
public void Open(
    string password
)
public:
void Open(
    String^ password
)
member Open : 
        password:string -> unit 
public function Open(
    password : String
)

Parameters

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

Examples

Calling Methods