다음을 통해 공유


PolicyCategory 속성

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

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

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.None)> _
<SfcReferenceAttribute(GetType(PolicyCategory), "PolicyStore/PolicyCategory[@Name='{0}']",  _
    )> _
Public Property PolicyCategory As String
    Get
    Set
‘사용 방법
Dim instance As Policy
Dim value As String

value = instance.PolicyCategory

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

주의

이 네임스페이스, 클래스 또는 멤버는 Microsoft .NET Framework 2.0 버전에서만 지원됩니다.

예제

속성 설정