HttpSessionState.Item[] 속성

정의

개별 세션 값을 가져오거나 설정합니다.

오버로드

Item[Int32]

숫자 인덱스별로 세션 값을 가져오거나 설정합니다.

Item[String]

이름별로 세션 값을 가져오거나 설정합니다.

Item[Int32]

숫자 인덱스별로 세션 값을 가져오거나 설정합니다.

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

매개 변수

index
Int32

세션 값의 숫자 인덱스입니다.

속성 값

지정된 인덱스 위치에 저장된 세션 상태 값입니다. 항목이 없는 경우 null입니다.

추가 정보

적용 대상

Item[String]

이름별로 세션 값을 가져오거나 설정합니다.

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

세션 값의 키 이름입니다.

속성 값

지정된 이름의 세션 상태 값입니다. 항목이 없는 경우 null입니다.

추가 정보

적용 대상