Tamino API for .NET

TaminoQueryResponse Class

Represents Tamino response information in response to a query command invocation. Methods are provided to permit iteration over the result set.

For a list of all members of this type, see TaminoQueryResponse Members.

System.Object
   TaminoQueryResponse

[Visual Basic]
Public Class TaminoQueryResponse
Implements IEnumerable
[C#]
public class TaminoQueryResponse : IEnumerable

Remarks

The HasData or ReturnValue should be checked first to see if the command was successful or not.

If the command was not sucessful then ErrorText and GetErrorPage may be used to get more information about why the command failed.

If the command was successful and one or more documents or document fragments were returned then the following methods could be used to examine the data.

The query response MUST be closed when finished with in order to prevent resource leakage.

Only one page iterator and one item iterator are associated with a TaminoQueryResponse.

Example

The following code snippet demonstrates the usage of a command invocation's response.

            if (response.ReturnValue == "0")
            {
                // command was OK - do some more
            }
            else
            {
                Console.WriteLine("command failed: "+response.ErrorText);
            }
            

Requirements

Namespace: SoftwareAG.Tamino.Api Namespace

Assembly: TaminoAPI.dll

See Also

TaminoQueryResponse Members | SoftwareAG.Tamino.Api Namespace | TaminoPageIterator | TaminoItemIterator