다음을 통해 공유


Policy.PolicyCategory 속성

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

네임스페이스:  Microsoft.SqlServer.Management.Dmf
어셈블리:  Microsoft.SqlServer.Dmf(Microsoft.SqlServer.Dmf.dll)

구문

‘선언
<SfcReferenceAttribute(GetType(PolicyCategory), "PolicyStore/PolicyCategory[@Name='{0}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.None)> _
Public Property PolicyCategory As String 
    Get 
    Set
‘사용 방법
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)

속성 값

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

속성 설정

참고 항목

참조

Policy 클래스

Microsoft.SqlServer.Management.Dmf 네임스페이스