Partager via


Propriété MasterKey.IsEncryptedByServer

Gets the Boolean property value that specifies whether the database master key is encrypted by using the service master key or by using a password.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property IsEncryptedByServer As Boolean 
    Get
'Utilisation
Dim instance As MasterKey 
Dim value As Boolean 

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

Valeur de propriété

Type : System.Boolean
A Boolean value that specifies whether the master key is encrypted by using the service master key or by using a password.If True, the master key is encrypted by the service master key. Otherwise, False.

Exemples

Définition de propriétés

Voir aussi

Référence

MasterKey Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Hiérarchie de chiffrement

CREATE MASTER KEY (Transact-SQL)