WebPubSubChatModelFactory.WebPubSubChatRole Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a chat role. A role name must start with 'user.' or 'room.' prefix. A role must contain either user permissions or room permissions, but not both.
public static Azure.Messaging.WebPubSub.Chat.WebPubSubChatRole WebPubSubChatRole(string name = default, System.Collections.Generic.IEnumerable<Azure.Messaging.WebPubSub.Chat.ChatPermission> permissions = default, Azure.ETag etag = default);
static member WebPubSubChatRole : string * seq<Azure.Messaging.WebPubSub.Chat.ChatPermission> * Azure.ETag -> Azure.Messaging.WebPubSub.Chat.WebPubSubChatRole
Public Shared Function WebPubSubChatRole (Optional name As String = Nothing, Optional permissions As IEnumerable(Of ChatPermission) = Nothing, Optional etag As ETag = Nothing) As WebPubSubChatRole
Parameters
- name
- String
Role name. Must start with 'user.' or 'room.' prefix.
- permissions
- IEnumerable<ChatPermission>
Permissions associated with the role. Do not mix user permissions and room permissions in one role.
- etag
- ETag
The entity tag for this resource.
Returns
A new WebPubSubChatRole instance for mocking.