RemoteSystemSessionMessageChannel 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RemoteSystemSessionMessageChannel(RemoteSystemSession, String)
初始化 RemoteSystemSessionMessageChannel 的實例,以管理指定遠端會話的傳訊
public:
RemoteSystemSessionMessageChannel(RemoteSystemSession ^ session, Platform::String ^ channelName);
RemoteSystemSessionMessageChannel(RemoteSystemSession const& session, winrt::hstring const& channelName);
public RemoteSystemSessionMessageChannel(RemoteSystemSession session, string channelName);
function RemoteSystemSessionMessageChannel(session, channelName)
Public Sub New (session As RemoteSystemSession, channelName As String)
參數
- session
- RemoteSystemSession
此傳訊通道將對應的 RemoteSystemSession 。
- channelName
-
String
Platform::String
winrt::hstring
傳訊通道的使用者定義名稱。 它應該是簡單且描述性的,例如「Bob 的 3D 應用程式會話」。
Windows 需求
應用程式功能 |
remoteSystem
|
適用於
RemoteSystemSessionMessageChannel(RemoteSystemSession, String, RemoteSystemSessionMessageChannelReliability)
初始化 RemoteSystemSessionMessageChannel 的實例,以管理指定遠端會話的傳訊,並指定通道的可靠性類型。
public:
RemoteSystemSessionMessageChannel(RemoteSystemSession ^ session, Platform::String ^ channelName, RemoteSystemSessionMessageChannelReliability reliability);
RemoteSystemSessionMessageChannel(RemoteSystemSession const& session, winrt::hstring const& channelName, RemoteSystemSessionMessageChannelReliability const& reliability);
public RemoteSystemSessionMessageChannel(RemoteSystemSession session, string channelName, RemoteSystemSessionMessageChannelReliability reliability);
function RemoteSystemSessionMessageChannel(session, channelName, reliability)
Public Sub New (session As RemoteSystemSession, channelName As String, reliability As RemoteSystemSessionMessageChannelReliability)
參數
- session
- RemoteSystemSession
此傳訊通道將對應的 RemoteSystemSession 。
- channelName
-
String
Platform::String
winrt::hstring
傳訊通道的使用者定義名稱。 它應該是簡單且描述性的,例如「Bob 的 3D 應用程式傳訊通道」。
- reliability
- RemoteSystemSessionMessageChannelReliability
描述此通道可靠性類型的 RemoteSystemSessionMessageChannelReliability 值。
Windows 需求
應用程式功能 |
remoteSystem
|