Share via


PolicyCollection.Item Property (String)

Gets a Policy 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 Policy 
    Get
'Usage
Dim instance As PolicyCollection 
Dim name As String 
Dim value As Policy 

value = instance(name)
public Policy this[
    string name
] { get; }
public:
property Policy^ default[String^ name] {
    Policy^ get (String^ name);
}
member Item : Policy
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.SqlServer.Management.Dmf.Policy
A Policy object value that represents the policy 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

PolicyCollection Class

Item Overload

Microsoft.SqlServer.Management.Dmf Namespace