共用方式為


WiFiDirectServiceRemotePortAddedEventArgs 類別

定義

引發 WiFiDirectServiceSession.RemotePortAdded 事件時傳回。 事件處理常式應該使用這項資訊來建立新埠的新通訊端連線。

public ref class WiFiDirectServiceRemotePortAddedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WiFiDirectServiceRemotePortAddedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WiFiDirectServiceRemotePortAddedEventArgs
Public NotInheritable Class WiFiDirectServiceRemotePortAddedEventArgs
繼承
Object Platform::Object IInspectable WiFiDirectServiceRemotePortAddedEventArgs
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

您的程式碼不會直接具現化此類別。 實例會當作引數傳遞至 WiFiDirectServiceSession.RemotePortAdded 事件處理常式。

屬性

EndpointPairs

取得與新遠端埠相關聯的端點配對。

Protocol

取得用來與新遠端埠通訊的通訊協定。

適用於