HttpApplicationState.Item[] 속성

정의

HttpApplicationState 컬렉션의 개체에 대한 액세스를 가져옵니다. 이 속성은 이름 또는 숫자 인덱스로 개체에 액세스할 수 있도록 오버로드됩니다.

오버로드

Item[String]

단일 HttpApplicationState 개체의 값을 이름으로 가져옵니다.

Item[Int32]

단일 HttpApplicationState 개체를 인덱스로 가져옵니다.

Item[String]

단일 HttpApplicationState 개체의 값을 이름으로 가져옵니다.

public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ name); void set(System::String ^ name, System::Object ^ value); };
public object this[string name] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(name As String) As Object

매개 변수

name
String

컬렉션에 있는 개체의 이름입니다.

속성 값

Object

name으로 참조된 개체입니다.

예제

다음 예제에서는 명명 된 개체를 반환 합니다. MyAppVar1 에서 합니다 HttpApplicationState 내장 컬렉션 Application 개체 및 새 개체 변수로 복사 합니다.

Object MyObject;
MyObject = Application["MyAppVar1"];
Dim MyObject As Object
MyObject = Application("MyAppVar1")

적용 대상

Item[Int32]

단일 HttpApplicationState 개체를 인덱스로 가져옵니다.

public:
 property System::Object ^ default[int] { System::Object ^ get(int index); };
public object this[int index] { get; }
member this.Item(int) : obj
Default Public ReadOnly Property Item(index As Integer) As Object

매개 변수

index
Int32

컬렉션에 있는 개체의 숫자 인덱스입니다.

속성 값

Object

index으로 참조된 개체입니다.

예제

다음 예제에서는 첫 번째 개체를 반환 합니다. (인덱스 = 0)에서 HttpApplicationState 내장 컬렉션 Application 개체 및 새 개체 변수로 복사 합니다.

Object MyObject;
MyObject = Application[0];
Dim MyObject As Object
MyObject = Application(0)

적용 대상