HttpStaticObjectsCollection.Item[String] 属性

定义

获取集合中具有指定名称的对象。Gets the object with the specified name from the 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

参数

name
String

要获取的对象名(不区分大小写)。The case-insensitive name of the object to get.

属性值

该集合中的一个对象。An object from the collection.

示例

下面的示例从 StaticObjects 集合中检索名为 ArrayList1 的对象,并将其复制到对象变量。The following example retrieves an object named ArrayList1 from the StaticObjects collection and copies it to an object variable.

Object MyObject;
MyObject = Application.StaticObjects["ArrayList1"];
   
Dim MyObject As Object
MyObject = Application.StaticObjects("ArrayList1")
   

适用于