다음을 통해 공유


DataCache.GetObjectsByAllTags 메서드

지정된 영역에서 동일한 태그를 공유하는 캐시된 개체를 모두 보여 주는 열거 가능 목록을 가져옵니다.

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

사용

구문

‘선언
Public Function GetObjectsByAllTags ( _
    tags As IEnumerable(Of DataCacheTag), _
    region As String _
) As IEnumerable(Of KeyValuePair(Of String, Object))
public IEnumerable<KeyValuePair<string,Object>> GetObjectsByAllTags (
    IEnumerable<DataCacheTag> tags,
    string region
)
public:
IEnumerable<KeyValuePair<String^, Object^>>^ GetObjectsByAllTags (
    IEnumerable<DataCacheTag^>^ tags, 
    String^ region
)
public IEnumerable<KeyValuePair<String,Object>> GetObjectsByAllTags (
    IEnumerable<DataCacheTag> tags, 
    String region
)
public function GetObjectsByAllTags (
    tags : IEnumerable<DataCacheTag>, 
    region : String
) : IEnumerable<KeyValuePair<String,Object>>

매개 변수

  • tags
    검색할 태그의 목록입니다.
  • region
    검색할 영역의 이름입니다. 태그는 영역 밖에서 지원되지 않습니다. 따라서 영역 이름이 필요합니다.

반환 값

지정된 영역에서 동일한 태그를 공유하는 캐시된 개체를 모두 보여 주는 열거 가능 목록입니다.

설명

목록에 반환되는 캐시된 개체는 tags 배열 매개 변수에 나열되는 태그를 모두 가집니다. tags 배열 매개 변수에 나열되는 태그 중 일부만 갖는 개체도 목록에 포함하려는 경우 GetObjectsByAnyTag 메서드를 사용합니다.

태그는 영역에 저장된 개체에 대해서만 지원됩니다.

스레드 보안

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

플랫폼

개발 플랫폼

Visual Studio 2010 이상, .NET Framework 4

대상 플랫폼

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

참고 항목

참조 항목

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