共用方式為


PolicyCategoryInformation.PolicyEnabled 屬性

Gets a Boolean value that indicates whether policy is enabled.

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

語法

'宣告
Public ReadOnly Property PolicyEnabled As Boolean 
    Get
'用途
Dim instance As PolicyCategoryInformation 
Dim value As Boolean 

value = instance.PolicyEnabled
public bool PolicyEnabled { get; }
public:
property bool PolicyEnabled {
    bool get ();
}
member PolicyEnabled : bool
function get PolicyEnabled () : boolean

屬性值

型別:System.Boolean
A Boolean value that indicates whether policy is enabled, True if enabled, otherwise False.

請參閱

參考

PolicyCategoryInformation 類別

Microsoft.SqlServer.Management.Dmf 命名空間