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

中心方法的自定义名称。

适用于