Share via


PolicyCategoryCollection.Item Property (String)

Gets a PolicyCategory object in the collection by name.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As PolicyCategory 
    Get
'Usage
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 supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

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

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Examples

Using Collections

See Also

Reference

PolicyCategoryCollection Class

Item Overload

Microsoft.SqlServer.Management.Dmf Namespace