Επεξεργασία

Κοινή χρήση μέσω


HttpApplicationStateWrapper.Get Method

Definition

Gets a state object by name or index.

Overloads

Get(Int32)

Returns a state object by index.

Get(String)

Returns a state object by name.

Get(Int32)

Returns a state object by index.

public:
 override System::Object ^ Get(int index);
public override object Get (int index);
override this.Get : int -> obj
Public Overrides Function Get (index As Integer) As Object

Parameters

index
Int32

The index of the application state object to get.

Returns

The object referenced by index.

Exceptions

index is outside the valid range of indexes for the collection.

Applies to

Get(String)

Returns a state object by name.

public:
 override System::Object ^ Get(System::String ^ name);
public override object Get (string name);
override this.Get : string -> obj
Public Overrides Function Get (name As String) As Object

Parameters

name
String

The name of the object to get.

Returns

The object referenced by name, if found; otherwise, null.

Applies to