다음을 통해 공유


IsOpen 속성

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

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<SfcPropertyAttribute> _
Public ReadOnly Property IsOpen As Boolean
    Get
‘사용 방법
Dim instance As MasterKey
Dim value As Boolean

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

속성 값

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

주의

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.

예제

속성 설정