共用方式為


IRemoteServiceBroker.CancelServiceRequestAsync(Guid) Method

Definition

Releases resources allocated as a result of a prior call to RequestServiceChannelAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken) when the client cannot or will not complete the connection to the requested service.

public:
 System::Threading::Tasks::Task ^ CancelServiceRequestAsync(Guid serviceRequestId);
public System.Threading.Tasks.Task CancelServiceRequestAsync (Guid serviceRequestId);
abstract member CancelServiceRequestAsync : Guid -> System.Threading.Tasks.Task
Public Function CancelServiceRequestAsync (serviceRequestId As Guid) As Task

Parameters

serviceRequestId
Guid

The value of RequestId from the connection instructions that will not be followed.

Returns

A task representing the request to cancel.

Applies to