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
- name
Type: System.String
A String value that specifies the position of the Policy object in the PolicyCollection collection.
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.