Share via


IDataServiceHost.GetQueryStringItem Method

Gets a data item identified by the identity key contained by the parameter of the method.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Function GetQueryStringItem ( _
    item As String _
) As String
'Usage
Dim instance As IDataServiceHost 
Dim item As String 
Dim returnValue As String 

returnValue = instance.GetQueryStringItem(item)
string GetQueryStringItem(
    string item
)
String^ GetQueryStringItem(
    String^ item
)
abstract GetQueryStringItem : 
        item:string -> string
function GetQueryStringItem(
    item : String
) : String

Parameters

  • item
    Type: System.String
    String value containing identity key of item requested.

Return Value

Type: System.String
The data item requested by the query serialized as a string.

Remarks

The query string portion of an WCF Data Services URI is made up of key/value pairs, with the key and value separated by the ‘=’ character. GetQueryStringItem returns a data item for an identity key specified by the parameter of the method.

See Also

Reference

IDataServiceHost Interface

System.Data.Services Namespace