AppServiceConnection.SendStatelessMessageAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開啟 App Service 連線、傳送單一訊息、等候單一回應,然後關閉連線。
public:
static IAsyncOperation<StatelessAppServiceResponse ^> ^ SendStatelessMessageAsync(AppServiceConnection ^ connection, RemoteSystemConnectionRequest ^ connectionRequest, ValueSet ^ message);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<StatelessAppServiceResponse> SendStatelessMessageAsync(AppServiceConnection const& connection, RemoteSystemConnectionRequest const& connectionRequest, ValueSet const& message);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StatelessAppServiceResponse> SendStatelessMessageAsync(AppServiceConnection connection, RemoteSystemConnectionRequest connectionRequest, ValueSet message);
function sendStatelessMessageAsync(connection, connectionRequest, message)
Public Shared Function SendStatelessMessageAsync (connection As AppServiceConnection, connectionRequest As RemoteSystemConnectionRequest, message As ValueSet) As IAsyncOperation(Of StatelessAppServiceResponse)
參數
- connection
- AppServiceConnection
要連線的應用程式服務。
- connectionRequest
- RemoteSystemConnectionRequest
指定 AppServiceConnection 的連線喜好設定,例如傳輸喜好設定 (cloud/proximal/any) 以及目標 System.RemoteSystems 物件。
- message
- ValueSet
您想要傳送的訊息。
傳回
非同步作業,可傳送選擇性地在完成時傳迴響應消息的訊息。
- 屬性
Windows 需求
裝置系列 |
Windows 10, version 1903 (已於 10.0.18362.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v8.0 引進)
|
備註
此 API 可以針對不需要透過數個 SendMessageAsync 作業建置狀態的遠端應用程式服務案例優化延遲。