Share via


HubMethodNameAttribute(String) 建構函式

定義

初始化 HubMethodNameAttribute 類別的新執行個體。

public:
 HubMethodNameAttribute(System::String ^ name);
public HubMethodNameAttribute (string name);
new Microsoft.AspNetCore.SignalR.HubMethodNameAttribute : string -> Microsoft.AspNetCore.SignalR.HubMethodNameAttribute
Public Sub New (name As String)

參數

name
String

中樞方法的自訂名稱。

適用於