共用方式為


PolicyCategoryCollection.Item 屬性 (String)

Gets a PolicyCategory object in the collection by name.

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

語法

'宣告
Public ReadOnly Default Property Item ( _
    name As String _
) As PolicyCategory 
    Get
'用途
Dim instance As PolicyCategoryCollection 
Dim name As String 
Dim value As PolicyCategory 

value = instance(name)
public PolicyCategory this[
    string name
] { get; }
public:
property PolicyCategory^ default[String^ name] {
    PolicyCategory^ get (String^ name);
}
member Item : PolicyCategory
JScript 支援索引屬性的使用,但不支援新屬性的宣告。

參數

屬性值

型別:Microsoft.SqlServer.Management.Dmf.PolicyCategory
A PolicyCategory object value that represents the policy category that has the specified name.

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。

範例

使用集合

請參閱

參考

PolicyCategoryCollection 類別

Item 多載

Microsoft.SqlServer.Management.Dmf 命名空間