Item propriété (String)
Gets a Database object in the collection by name.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public ReadOnly Default Property Item ( _
name As String _
) As Database
Get
'Utilisation
Dim instance As DatabaseCollection
Dim name As String
Dim value As Database
value = instance(name)
public Database this[
string name
] { get; }
public:
property Database^ default[String^ name] {
Database^ get (String^ name);
}
member Item : Database
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.
Paramètres
- name
Type : System. . :: . .String
A String value that specifies the name of the Database object in the DatabaseCollection collection.
Valeur de la propriété
Type : Microsoft.SqlServer.Management.Smo. . :: . .Database
A Database object value that represents the database.