共用方式為


HubInvocationContext 建構函式

定義

多載

HubInvocationContext(HubCallerContext, String, Object[])
已淘汰.

執行個體化 HubInvocationContext 類別的新執行個體。

HubInvocationContext(HubCallerContext, IServiceProvider, Hub, MethodInfo, IReadOnlyList<Object>)

執行個體化 HubInvocationContext 類別的新執行個體。

HubInvocationContext(HubCallerContext, String, Object[])

警告

This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other constructor.

執行個體化 HubInvocationContext 類別的新執行個體。

public:
 HubInvocationContext(Microsoft::AspNetCore::SignalR::HubCallerContext ^ context, System::String ^ hubMethodName, cli::array <System::Object ^> ^ hubMethodArguments);
public HubInvocationContext (Microsoft.AspNetCore.SignalR.HubCallerContext context, string hubMethodName, object[] hubMethodArguments);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other constructor.")]
public HubInvocationContext (Microsoft.AspNetCore.SignalR.HubCallerContext context, string hubMethodName, object?[] hubMethodArguments);
new Microsoft.AspNetCore.SignalR.HubInvocationContext : Microsoft.AspNetCore.SignalR.HubCallerContext * string * obj[] -> Microsoft.AspNetCore.SignalR.HubInvocationContext
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other constructor.")>]
new Microsoft.AspNetCore.SignalR.HubInvocationContext : Microsoft.AspNetCore.SignalR.HubCallerContext * string * obj[] -> Microsoft.AspNetCore.SignalR.HubInvocationContext
Public Sub New (context As HubCallerContext, hubMethodName As String, hubMethodArguments As Object())

參數

context
HubCallerContext

使用中樞連線和呼叫端的內容。

hubMethodName
String

要叫用的 Hub 方法名稱。

hubMethodArguments
Object[]

用戶端提供的引數。

屬性

適用於

HubInvocationContext(HubCallerContext, IServiceProvider, Hub, MethodInfo, IReadOnlyList<Object>)

來源:
HubInvocationContext.cs

執行個體化 HubInvocationContext 類別的新執行個體。

public:
 HubInvocationContext(Microsoft::AspNetCore::SignalR::HubCallerContext ^ context, IServiceProvider ^ serviceProvider, Microsoft::AspNetCore::SignalR::Hub ^ hub, System::Reflection::MethodInfo ^ hubMethod, System::Collections::Generic::IReadOnlyList<System::Object ^> ^ hubMethodArguments);
public HubInvocationContext (Microsoft.AspNetCore.SignalR.HubCallerContext context, IServiceProvider serviceProvider, Microsoft.AspNetCore.SignalR.Hub hub, System.Reflection.MethodInfo hubMethod, System.Collections.Generic.IReadOnlyList<object?> hubMethodArguments);
new Microsoft.AspNetCore.SignalR.HubInvocationContext : Microsoft.AspNetCore.SignalR.HubCallerContext * IServiceProvider * Microsoft.AspNetCore.SignalR.Hub * System.Reflection.MethodInfo * System.Collections.Generic.IReadOnlyList<obj> -> Microsoft.AspNetCore.SignalR.HubInvocationContext
Public Sub New (context As HubCallerContext, serviceProvider As IServiceProvider, hub As Hub, hubMethod As MethodInfo, hubMethodArguments As IReadOnlyList(Of Object))

參數

context
HubCallerContext

使用中樞連線和呼叫端的內容。

serviceProvider
IServiceProvider

這個 IServiceProvider Hub 方法調用範圍的特定 。

hub
Hub

中樞的實例。

hubMethod
MethodInfo

MethodInfo 叫用中樞方法的 。

hubMethodArguments
IReadOnlyList<Object>

用戶端提供的引數。

適用於