DdeClient.Request Method (String, Int32, Int32)

NDde

Dynamic Data Exchange Library for .NET

DdeClient.Request Method (String, Int32, Int32)

This requests data using the specified item name.

public virtual byte[] Request(
   String item,
   Int32 format,
   Int32 timeout
);

Parameters

item
An item name supported by the current conversation.
format
The format of the data to return.
timeout
The amount of time in milliseconds to wait for a response.

Return Value

The data returned by the server application.

Remarks

This operation will timeout if the conversation is paused.

Exceptions

Exception Type Condition
ArgumentException This is thown when item exceeds 255 characters or timeout is negative.
ArgumentNullException This is thrown when item is a null reference.
InvalidOperationException This is thrown when the client is not connected.
DdeException This is thrown when the server does not process the request.

See Also

DdeClient Class | NDde.Client Namespace | DdeClient.Request Overload List