INameObjectCollection.Get Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the value of an object in the collection.
Overloads
Get(Int32) |
Retrieves the value of the specified entry from the instance. |
Get(String) |
Retrieves the value of the first entry with the specified key from the instance. |
Get(Int32)
Retrieves the value of the specified entry from the instance.
public:
System::Object ^ Get(int index);
public object Get (int index);
abstract member Get : int -> obj
Public Function Get (index As Integer) As Object
Parameters
Returns
An object that represents the value of the first entry with the specified key, if found; otherwise null.
Applies to
Get(String)
Retrieves the value of the first entry with the specified key from the instance.
public:
System::Object ^ Get(System::String ^ name);
public object Get (string name);
abstract member Get : string -> obj
Public Function Get (name As String) As Object
Parameters
Returns
An object that represents the value of the first entry with the specified key, if found; otherwise null.