共用方式為


INDMessenger.SendProximityDetectionStartAsync 方法

定義

在非同步鄰近偵測啟動訊息中傳送指定的資料。

public:
 IAsyncOperation<INDSendResult ^> ^ SendProximityDetectionStartAsync(NDProximityDetectionType pdType, Platform::Array <byte> ^ transmitterChannelBytes, Platform::Array <byte> ^ sessionIDBytes, Platform::Array <byte> ^ challengeDataBytes);
/// [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

鄰近偵測作業的類型。 此值可以是 UDPTCPTransport-Agnostic

transmitterChannelBytes

Byte[]

byte[]

傳送器通道資料。

sessionIDBytes

Byte[]

byte[]

工作階段識別項。 會話識別碼必須是 16 個位元組。

challengeDataBytes

Byte[]

byte[]

挑戰訊息的資料。

傳回

鄰近偵測啟動作業的結果。

屬性

適用於

另請參閱