NDTCPMessenger.SendProximityDetectionResponseAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在非同步鄰近偵測回應訊息中傳送指定的資料。
public:
virtual IAsyncOperation<INDSendResult ^> ^ SendProximityDetectionResponseAsync(NDProximityDetectionType pdType, Platform::Array <byte> ^ transmitterChannelBytes, Platform::Array <byte> ^ sessionIDBytes, Platform::Array <byte> ^ responseDataBytes) = SendProximityDetectionResponseAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<INDSendResult> SendProximityDetectionResponseAsync(NDProximityDetectionType const& pdType, winrt::array_view <byte> const& transmitterChannelBytes, winrt::array_view <byte> const& sessionIDBytes, winrt::array_view <byte> const& responseDataBytes);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("INDMessenger is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<INDSendResult> SendProximityDetectionResponseAsync(NDProximityDetectionType const& pdType, winrt::array_view <byte> const& transmitterChannelBytes, winrt::array_view <byte> const& sessionIDBytes, winrt::array_view <byte> const& responseDataBytes);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<INDSendResult> SendProximityDetectionResponseAsync(NDProximityDetectionType pdType, byte[] transmitterChannelBytes, byte[] sessionIDBytes, byte[] responseDataBytes);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("INDMessenger is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<INDSendResult> SendProximityDetectionResponseAsync(NDProximityDetectionType pdType, byte[] transmitterChannelBytes, byte[] sessionIDBytes, byte[] responseDataBytes);
function sendProximityDetectionResponseAsync(pdType, transmitterChannelBytes, sessionIDBytes, responseDataBytes)
Public Function SendProximityDetectionResponseAsync (pdType As NDProximityDetectionType, transmitterChannelBytes As Byte(), sessionIDBytes As Byte(), responseDataBytes As Byte()) As IAsyncOperation(Of INDSendResult)
參數
- pdType
- NDProximityDetectionType
鄰近偵測作業的類型。 此值可以是 UDP、 TCP或 Transport-Agnostic。
- transmitterChannelBytes
-
Byte[]
byte[]
傳送器通道資料。
- sessionIDBytes
-
Byte[]
byte[]
工作階段識別項。 會話識別碼必須是 16 個位元組。
- responseDataBytes
-
Byte[]
byte[]
回應訊息的資料。
傳回
鄰近偵測回應作業的結果。
實作
M:Windows.Media.Protection.PlayReady.INDMessenger.SendProximityDetectionResponseAsync(Windows.Media.Protection.PlayReady.NDProximityDetectionType,System.Byte[],System.Byte[],System.Byte[])
M:Windows.Media.Protection.PlayReady.INDMessenger.SendProximityDetectionResponseAsync(Windows.Media.Protection.PlayReady.NDProximityDetectionType,byte[],byte[],byte[])
- 屬性