DataCacheSessionStoreProvider.GetItemExclusive 메서드

캐시에서 읽기 전용 세션 상태 데이터를 반환하고 잠급니다.

네임스페이스: Microsoft.ApplicationServer.Caching
어셈블리: Microsoft.ApplicationServer.Caching.Client(위치: microsoft.applicationserver.caching.client.dll)

사용

구문

‘선언
Public Overrides Function GetItemExclusive ( _
    context As HttpContext, _
    id As String, _
    <OutAttribute> ByRef locked As Boolean, _
    <OutAttribute> ByRef lockAge As TimeSpan, _
    <OutAttribute> ByRef lockId As Object, _
    <OutAttribute> ByRef actions As SessionStateActions _
) As SessionStateStoreData
public override SessionStateStoreData GetItemExclusive (
    HttpContext context,
    string id,
    out bool locked,
    out TimeSpan lockAge,
    out Object lockId,
    out SessionStateActions actions
)
public:
virtual SessionStateStoreData^ GetItemExclusive (
    HttpContext^ context, 
    String^ id, 
    [OutAttribute] bool% locked, 
    [OutAttribute] TimeSpan% lockAge, 
    [OutAttribute] Object^% lockId, 
    [OutAttribute] SessionStateActions% actions
) override
public SessionStateStoreData GetItemExclusive (
    HttpContext context, 
    String id, 
    /** @attribute OutAttribute() */ /** @ref */ boolean locked, 
    /** @attribute OutAttribute() */ /** @ref */ TimeSpan lockAge, 
    /** @attribute OutAttribute() */ /** @ref */ Object lockId, 
    /** @attribute OutAttribute() */ /** @ref */ SessionStateActions actions
)

매개 변수

  • context
    현재 요청의 HttpContext입니다.
  • id
    현재 요청의 세션 식별자입니다.
  • locked
    이 메서드는 반환 시 부울 값을 포함하며, 이 값은 캐시의 잠금을 얻는 데 성공했으면 true, 그렇지 않으면 false로 설정됩니다.
  • lockAge
    이 메서드는 반환 시 TimeSpan 개체를 포함하며, 이 개체는 캐시의 어떤 항목이 잠겨 있던 기간으로 설정됩니다.
  • lockId
    이 메서드는 반환 시 개체를 포함하며, 이 개체는 현재 요청의 잠금 식별자로 설정됩니다.
  • actions
    이 메서드는 반환 시 SessionStateActions 값 중 하나를 포함합니다. 이 값은 현재 세션이 초기화되지 않았고 쿠키를 사용하지 않는 세션인지 여부를 나타냅니다.

반환 값

캐시에서 얻은 세션 값 및 정보로 채워진 SessionStateStoreData 개체입니다.

설명

자세한 내용은 기본 클래스 SessionStateStoreProviderBase에 대한 설명서를 참조하십시오.

스레드 보안

이 유형의 public static(Visual Basic의Shared) 구성원은 모두 스레드가 안전합니다. 모든 인스턴스 구성원이 스레드가 안전한 것은 아닙니다.

플랫폼

개발 플랫폼

Visual Studio 2010 이상, .NET Framework 4

대상 플랫폼

Windows 7; Windows Server 2008 R2; Windows Server 2008 서비스 팩 2; Windows Vista 서비스 팩 2

참고 항목

참조 항목

DataCacheSessionStoreProvider 클래스
DataCacheSessionStoreProvider 구성원
Microsoft.ApplicationServer.Caching 네임스페이스