你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ConnectEventResponse 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ConnectEventResponse() |
JsonSerialize 的默认构造函数。 |
ConnectEventResponse(String, IEnumerable<String>, String, IEnumerable<String>) |
创建 ConnectEventResponse 的实例 |
ConnectEventResponse()
- Source:
- ConnectEventResponse.cs
JsonSerialize 的默认构造函数。
public ConnectEventResponse();
Public Sub New ()
适用于
ConnectEventResponse(String, IEnumerable<String>, String, IEnumerable<String>)
- Source:
- ConnectEventResponse.cs
创建 ConnectEventResponse 的实例
public ConnectEventResponse(string userId, System.Collections.Generic.IEnumerable<string> groups, string subprotocol, System.Collections.Generic.IEnumerable<string> roles);
new Microsoft.Azure.WebPubSub.Common.ConnectEventResponse : string * seq<string> * string * seq<string> -> Microsoft.Azure.WebPubSub.Common.ConnectEventResponse
Public Sub New (userId As String, groups As IEnumerable(Of String), subprotocol As String, roles As IEnumerable(Of String))
参数
- userId
- String
当前连接的用户 ID。
- groups
- IEnumerable<String>
组属于当前连接。
- subprotocol
- String
用于当前连接的子协议。
- roles
- IEnumerable<String>
角色属于当前连接。