Compartir a través de


MasterKey.IsOpen Propiedad

Gets the Boolean property value that specifies whether the database master key is open.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property IsOpen As Boolean 
    Get
'Uso
Dim instance As MasterKey 
Dim value As Boolean 

value = instance.IsOpen
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool IsOpen { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool IsOpen {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member IsOpen : bool
function get IsOpen () : boolean

Valor de la propiedad

Tipo: System.Boolean
A Boolean value that specifies whether the master key is open.If True, the master key is open. Otherwise, False.

Comentarios

If the master key was encrypted by using the service master key, it is automatically opened when the session begins. In this case, it is not necessary to open the master key explicitly. If the master key is encrypted with a password, you must open it explicitly by using the Open method and providing the password.

Ejemplos

Establecer propiedades

Vea también

Referencia

MasterKey Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Jerarquía de cifrado

CREATE MASTER KEY (Transact-SQL)