Proprietà Policy.PolicyCategory

Gets or sets the category that is associated with the policy.

Spazio dei nomi  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Sintassi

'Dichiarazione
<SfcReferenceAttribute(GetType(PolicyCategory), "PolicyStore/PolicyCategory[@Name='{0}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.None)> _
Public Property PolicyCategory As String 
    Get 
    Set
'Utilizzo
Dim instance As Policy 
Dim value As String 

value = instance.PolicyCategory

instance.PolicyCategory = value
[SfcReferenceAttribute(typeof(PolicyCategory), "PolicyStore/PolicyCategory[@Name='{0}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags.None)]
public string PolicyCategory { get; set; }
[SfcReferenceAttribute(typeof(PolicyCategory), L"PolicyStore/PolicyCategory[@Name='{0}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags::None)]
public:
property String^ PolicyCategory {
    String^ get ();
    void set (String^ value);
}
[<SfcReferenceAttribute(typeof(PolicyCategory), "PolicyStore/PolicyCategory[@Name='{0}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.None)>]
member PolicyCategory : string with get, set
function get PolicyCategory () : String 
function set PolicyCategory (value : String)

Valore proprietà

Tipo: System.String
A PolicyCategory object that is associated with the policy.

Esempi

Impostazione delle proprietà

Vedere anche

Riferimento

Policy Classe

Spazio dei nomi Microsoft.SqlServer.Management.Dmf