NDTCPMessenger.SendProximityDetectionStartAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在非同步鄰近偵測啟動訊息中傳送指定的資料。
public:
virtual IAsyncOperation<INDSendResult ^> ^ SendProximityDetectionStartAsync(NDProximityDetectionType pdType, Platform::Array <byte> ^ transmitterChannelBytes, Platform::Array <byte> ^ sessionIDBytes, Platform::Array <byte> ^ challengeDataBytes) = SendProximityDetectionStartAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<INDSendResult> SendProximityDetectionStartAsync(NDProximityDetectionType const& pdType, winrt::array_view <byte> const& transmitterChannelBytes, winrt::array_view <byte> const& sessionIDBytes, winrt::array_view <byte> const& challengeDataBytes);
/// [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> SendProximityDetectionStartAsync(NDProximityDetectionType const& pdType, winrt::array_view <byte> const& transmitterChannelBytes, winrt::array_view <byte> const& sessionIDBytes, winrt::array_view <byte> const& challengeDataBytes);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<INDSendResult> SendProximityDetectionStartAsync(NDProximityDetectionType pdType, byte[] transmitterChannelBytes, byte[] sessionIDBytes, byte[] challengeDataBytes);
[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> SendProximityDetectionStartAsync(NDProximityDetectionType pdType, byte[] transmitterChannelBytes, byte[] sessionIDBytes, byte[] challengeDataBytes);
function sendProximityDetectionStartAsync(pdType, transmitterChannelBytes, sessionIDBytes, challengeDataBytes)
Public Function SendProximityDetectionStartAsync (pdType As NDProximityDetectionType, transmitterChannelBytes As Byte(), sessionIDBytes As Byte(), challengeDataBytes As Byte()) As IAsyncOperation(Of INDSendResult)
參數
- pdType
- NDProximityDetectionType
鄰近偵測作業的類型。 此值可以是 UDP、 TCP或 Transport-Agnostic。
- transmitterChannelBytes
-
Byte[]
byte[]
傳輸器通道資料。
- sessionIDBytes
-
Byte[]
byte[]
工作階段識別項。 會話識別碼必須是 16 個位元組。
- challengeDataBytes
-
Byte[]
byte[]
挑戰訊息的資料。
傳回
鄰近偵測啟動作業的結果。
實作
M:Windows.Media.Protection.PlayReady.INDMessenger.SendProximityDetectionStartAsync(Windows.Media.Protection.PlayReady.NDProximityDetectionType,System.Byte[],System.Byte[],System.Byte[])
M:Windows.Media.Protection.PlayReady.INDMessenger.SendProximityDetectionStartAsync(Windows.Media.Protection.PlayReady.NDProximityDetectionType,byte[],byte[],byte[])
- 屬性