INameObjectCollection.Get Method

Definition

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

index
Int32

An Int32 value that represents entry at the specified index of the instance.

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

name
String

The String string key of the entry to get. The key can be a null reference.

Returns

An object that represents the value of the first entry with the specified key, if found; otherwise null.

Applies to