TableQuery.Where Method

Windows Runtime Azure Storage Client Library

Defines a filter expression for the table query. Only entities that satisfy the specified filter expression will be returned by the query.

Namespace: Microsoft.WindowsAzure.Storage.Table
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As TableQuery(Of TElement)
Dim filter As String
Dim returnValue As TableQuery(Of TElement)

returnValue = instance.Where(filter)

Syntax

Visual Basic
Public Function Where ( _
	filter As String _
) As TableQuery(Of TElement)
C#
public TableQuery<TElement> Where (
	string filter
)
C++
public:
TableQuery<TElement>^ Where (
	String^ filter
)
J#
public TableQuery<TElement> Where (
	String filter
)
JScript
public function Where (
	filter : String
) : TableQuery<TElement>

Parameters

filter

A string containing the filter expression to apply to the table query.

Return Value

A TableQuery instance set with the filter on entities to return.

Remarks

Setting a filter expression is optional; by default, all entities in the table are returned if no filter expression is specified in the table query.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also