CFMessagePort.SendRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.