HubConnection.ConnectionId Property

Definition

Gets the connection's current Id. This value will be cleared when the connection is stopped and will have a new value every time the connection is (re)established. This value will be null if the negotiation step is skipped via HttpConnectionOptions or if the WebSockets transport is explicitly specified because the client skips negotiation in that case as well.

public:
 property System::String ^ ConnectionId { System::String ^ get(); };
public string ConnectionId { get; }
public string? ConnectionId { get; }
member this.ConnectionId : string
Public ReadOnly Property ConnectionId As String

Property Value

Applies to