共用方式為


HubConnectionBuilderHttpExtensions.WithUrl 方法

定義

多載

WithUrl(IHubConnectionBuilder, String)

HubConnection 設定為使用 HTTP 型傳輸來連線至指定的 URL。

WithUrl(IHubConnectionBuilder, Uri)

HubConnection 設定為使用 HTTP 型傳輸來連線至指定的 URL。

WithUrl(IHubConnectionBuilder, String, HttpTransportType)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>)

HubConnection 設定為使用 HTTP 型傳輸來連線至指定的 URL。

WithUrl(IHubConnectionBuilder, Uri, HttpTransportType)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>)

HubConnection 設定為使用 HTTP 型傳輸來連線至指定的 URL。

WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

WithUrl(IHubConnectionBuilder, String)

來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs

HubConnection 設定為使用 HTTP 型傳輸來連線至指定的 URL。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, System::String ^ url);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, string url);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * string -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As String) As IHubConnectionBuilder

參數

hubConnectionBuilder
IHubConnectionBuilder

要設定的 IHubConnectionBuilder

url
String

將使用的 HttpConnection URL。

傳回

用於鏈結的相同 IHubConnectionBuilder 執行個體。

適用於

WithUrl(IHubConnectionBuilder, Uri)

來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs

HubConnection 設定為使用 HTTP 型傳輸來連線至指定的 URL。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, Uri ^ url);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Uri url);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Uri -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As Uri) As IHubConnectionBuilder

參數

hubConnectionBuilder
IHubConnectionBuilder

要設定的 IHubConnectionBuilder

url
Uri

將使用的 HttpConnection URL。

傳回

用於鏈結的相同 IHubConnectionBuilder 執行個體。

適用於

WithUrl(IHubConnectionBuilder, String, HttpTransportType)

來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, System::String ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, string url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * string * Microsoft.AspNetCore.Http.Connections.HttpTransportType -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As String, transports As HttpTransportType) As IHubConnectionBuilder

參數

hubConnectionBuilder
IHubConnectionBuilder

要設定的 IHubConnectionBuilder

url
String

將使用的 HttpConnection URL。

transports
HttpTransportType

結合一或多個 HttpTransportType 值的位元遮罩,指定用戶端應該使用哪些傳輸。

傳回

用於鏈結的相同 IHubConnectionBuilder 執行個體。

適用於

WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>)

來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs

HubConnection 設定為使用 HTTP 型傳輸來連線至指定的 URL。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, System::String ^ url, Action<Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^> ^ configureHttpConnection);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, string url, Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> configureHttpConnection);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * string * Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As String, configureHttpConnection As Action(Of HttpConnectionOptions)) As IHubConnectionBuilder

參數

hubConnectionBuilder
IHubConnectionBuilder

要設定的 IHubConnectionBuilder

url
String

將使用的 HttpConnection URL。

configureHttpConnection
Action<HttpConnectionOptions>

設定 HttpConnection 的委派。

傳回

用於鏈結的相同 IHubConnectionBuilder 執行個體。

適用於

WithUrl(IHubConnectionBuilder, Uri, HttpTransportType)

來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, Uri ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Uri url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Uri * Microsoft.AspNetCore.Http.Connections.HttpTransportType -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As Uri, transports As HttpTransportType) As IHubConnectionBuilder

參數

hubConnectionBuilder
IHubConnectionBuilder

要設定的 IHubConnectionBuilder

url
Uri

將使用的 HttpConnection URL。

transports
HttpTransportType

結合一或多個 HttpTransportType 值的位元遮罩,指定用戶端應該使用哪些傳輸。

傳回

用於鏈結的相同 IHubConnectionBuilder 執行個體。

適用於

WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>)

來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs

HubConnection 設定為使用 HTTP 型傳輸來連線至指定的 URL。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, Uri ^ url, Action<Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^> ^ configureHttpConnection);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Uri url, Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> configureHttpConnection);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Uri * Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As Uri, configureHttpConnection As Action(Of HttpConnectionOptions)) As IHubConnectionBuilder

參數

hubConnectionBuilder
IHubConnectionBuilder

要設定的 IHubConnectionBuilder

url
Uri

將使用的 HttpConnection URL。

configureHttpConnection
Action<HttpConnectionOptions>

設定 HttpConnection 的委派。

傳回

用於鏈結的相同 IHubConnectionBuilder 執行個體。

適用於

WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>)

來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, System::String ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports, Action<Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^> ^ configureHttpConnection);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, string url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports, Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> configureHttpConnection);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * string * Microsoft.AspNetCore.Http.Connections.HttpTransportType * Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As String, transports As HttpTransportType, configureHttpConnection As Action(Of HttpConnectionOptions)) As IHubConnectionBuilder

參數

hubConnectionBuilder
IHubConnectionBuilder

要設定的 IHubConnectionBuilder

url
String

將使用的 HttpConnection URL。

transports
HttpTransportType

結合一或多個 HttpTransportType 值的位元遮罩,指定用戶端應該使用哪些傳輸。

configureHttpConnection
Action<HttpConnectionOptions>

設定 HttpConnection 的委派。

傳回

用於鏈結的相同 IHubConnectionBuilder 執行個體。

適用於

WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>)

來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs
來源:
HubConnectionBuilderHttpExtensions.cs

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, Uri ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports, Action<Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^> ^ configureHttpConnection);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Uri url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports, Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> configureHttpConnection);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Uri * Microsoft.AspNetCore.Http.Connections.HttpTransportType * Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As Uri, transports As HttpTransportType, configureHttpConnection As Action(Of HttpConnectionOptions)) As IHubConnectionBuilder

參數

hubConnectionBuilder
IHubConnectionBuilder

要設定的 IHubConnectionBuilder

url
Uri

將使用的 HttpConnection URL。

transports
HttpTransportType

結合一或多個 HttpTransportType 值的位元遮罩,指定用戶端應該使用哪些傳輸。

configureHttpConnection
Action<HttpConnectionOptions>

設定 HttpConnection 的委派。

傳回

用於鏈結的相同 IHubConnectionBuilder 執行個體。

適用於