PolicyCategorySubscription.PolicyCategory 属性

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

命名空间:  Microsoft.SqlServer.Management.Dmf
程序集:  Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)

语法

声明
<SfcReferenceAttribute(GetType(Condition), "PolicyStore/PolicyCategory[@Name='{0}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.Required)> _
Public Property PolicyCategory As String 
    Get 
    Set
用法
Dim instance As PolicyCategorySubscription 
Dim value As String 

value = instance.PolicyCategory

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

属性值

类型:System.String
A PolicyCategory object value that specifies the category thatis associated with the subscription.

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

请参阅

参考

PolicyCategorySubscription 类

Microsoft.SqlServer.Management.Dmf 命名空间