Sdílet prostřednictvím


PolicyCategoryInformation.PolicyEnabled Property

Gets a Boolean value that indicates whether policy is enabled.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
Public ReadOnly Property PolicyEnabled As Boolean
    Get
'Usage
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

Property Value

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