共用方式為


SymmetricKey.IsOpen 屬性

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property IsOpen As Boolean 
    Get
'用途
Dim instance As SymmetricKey 
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

屬性值

型別:System.Boolean
A Boolean value that specifies whether the symmetric key is open.If True, the symmetric key is open.If False (default), the symmetric key is closed.

範例

使用加密

請參閱

參考

SymmetricKey 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

加密階層

CREATE SYMMETRIC KEY (Transact-SQL)