Tamino API for .NET

TaminoQueryResponse.GetSingleItem Method 

Returns the first item as an object of the specified type.

[Visual Basic]
Public Function GetSingleItem( _
   ByVal type As Type _
) As Object
[C#]
public object GetSingleItem(
   Type type
);

Parameters

type
the type of the object to return

Return Value

the first item

Remarks

Helper method to permit simple access to the contents of a single item result set. To be used when only a single item is expected as the response (it just bypasses the unnecessary use of GetItemIterator/GetPageIterator).

See Also

TaminoQueryResponse Class | TaminoQueryResponse Members | SoftwareAG.Tamino.Api Namespace