共用方式為


HubConnectionStore.Item[String] 屬性

定義

HubConnectionContext依連線識別碼取得 。

public:
 property Microsoft::AspNetCore::SignalR::HubConnectionContext ^ default[System::String ^] { Microsoft::AspNetCore::SignalR::HubConnectionContext ^ get(System::String ^ connectionId); };
public Microsoft.AspNetCore.SignalR.HubConnectionContext this[string connectionId] { get; }
public Microsoft.AspNetCore.SignalR.HubConnectionContext? this[string connectionId] { get; }
member this.Item(string) : Microsoft.AspNetCore.SignalR.HubConnectionContext
Default Public ReadOnly Property Item(connectionId As String) As HubConnectionContext

參數

connectionId
String

連線的識別碼。

屬性值

的連線 connectionId ,如果沒有連接,則為 null。

適用於