共用方式為


Policy.CategoryId 屬性

Gets the ID value that uniquely identifies the category that is associated with the policy.

命名空間:  Microsoft.SqlServer.Management.Dmf
組件:  Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property CategoryId As Integer 
    Get
'用途
Dim instance As Policy 
Dim value As Integer 

value = instance.CategoryId
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public int CategoryId { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
public:
property int CategoryId {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
member CategoryId : int
function get CategoryId () : int

屬性值

型別:System.Int32
An Int32 value that specifies the category ID value.

請參閱

參考

Policy 類別

Microsoft.SqlServer.Management.Dmf 命名空間