Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets a list of all cached objects in the specified region that have the specified tag.
Namespace: System.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)
Syntax
'Declaration
Public Function GetByTag ( _
region As String, _
tag As Tag _
) As List(Of KeyValuePair(Of String, Object))
'Usage
Dim instance As Cache
Dim region As String
Dim tag As Tag
Dim returnValue As List(Of KeyValuePair(Of String, Object))
returnValue = instance.GetByTag(region, tag)
public List<KeyValuePair<string,Object>> GetByTag (
string region,
Tag tag
)
public:
List<KeyValuePair<String^, Object^>>^ GetByTag (
String^ region,
Tag^ tag
)
public List<KeyValuePair<String,Object>> GetByTag (
String region,
Tag tag
)
public function GetByTag (
region : String,
tag : Tag
) : List<KeyValuePair<String,Object>>
Parameters
- region
The name of the region to search. Tags are not supported outside regions. Therefore, a region name is required.
- tag
The tag for which to search.
Return Value
A list of all cached objects in the specified region that have the specified tag. Null is returned if no objects in the specified region have the tag specified.
Remarks
Tags are supported only for objects stored in regions.