Propriété Item (String)

Gets a Policy object in the collection by name.

Espace de noms :  Microsoft.SqlServer.Management.Dmf
Assembly :  Microsoft.SqlServer.Dmf (en Microsoft.SqlServer.Dmf.dll)

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    name As String _
) As Policy
    Get
'Utilisation
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 prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

Valeur de propriété

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

Notes

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.