Language

CFMessagePort.SendRequest Method

Definition

Sends a message through a remote message port.

public CoreFoundation.CFMessagePortSendRequestStatus SendRequest(int msgid, Foundation.NSData? data, double sendTimeout, double rcvTimeout, Foundation.NSString? replyMode, out Foundation.NSData? returnData);
member this.SendRequest : int * Foundation.NSData * double * double * Foundation.NSString * NSData -> CoreFoundation.CFMessagePortSendRequestStatus

Parameters

msgid
Int32

The application-defined message identifier.

data
NSData

The message data, or null to send an empty message.

sendTimeout
Double

The maximum number of seconds to wait while sending the message.

rcvTimeout
Double

The maximum number of seconds to wait for a reply.

replyMode
NSString

The run loop mode in which to wait for a reply, or null if no reply is expected.

returnData
NSData

On return, the reply data, or null if no data was returned.

Returns

A value that describes whether the message was sent and, if requested, whether a reply was received.

Remarks

This method is intended for remote ports. When replyMode is null, the method returns after sending and does not wait for a reply.

Applies to