共用方式為


State 屬性

Gets the encryption state.

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

語法

'宣告
<ExtendedPropertyAttribute> _
Public ReadOnly Property State As SqlSmoState
    Get
'用途
Dim instance As DatabaseEncryptionKeyExtender
Dim value As SqlSmoState

value = instance.State
[ExtendedPropertyAttribute]
public SqlSmoState State { get; }
[ExtendedPropertyAttribute]
public:
property SqlSmoState State {
    SqlSmoState get ();
}
[<ExtendedPropertyAttribute>]
member State : SqlSmoState
function get State () : SqlSmoState

備註

The table below lists valid values for SqlSmoState.

Parameter

Description

Create

The object is being created.

Dropped

The object is being dropped.

Existing

The object exists.

Pending

The object is pending an instruction.

ToBeDropped

The object is waiting to be dropped.