HttpStaticObjectsCollection.Item[String] Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l’objet portant le nom spécifié de la collection.
public:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ name); };
public object this[string name] { get; }
member this.Item(string) : obj
Default Public ReadOnly Property Item(name As String) As Object
Paramètres
- name
- String
Nom non sensible à la casse de l’objet à obtenir.
Valeur de propriété
Objet de la collection.
Exemples
L’exemple suivant récupère un objet nommé ArrayList1 à partir de la StaticObjects collection et le copie dans une variable d’objet.
Object MyObject;
MyObject = Application.StaticObjects["ArrayList1"];
Dim MyObject As Object
MyObject = Application.StaticObjects("ArrayList1")