Class WorkspaceConfiguration
Stores workspace access control settings such as the allowed users and their roles.
[DataContract]
public sealed class WorkspaceConfiguration
- Inheritance
-
WorkspaceConfiguration
- Inherited Members
Properties
Users
Returns the configured users as a defensive copy.
[DataMember(Name = "users", EmitDefaultValue = false)]
public ISet<User> Users { get; }
Property Value
Remarks
Changes made to the returned set do not update the underlying configuration.
Methods
AddUser(string, Role)
Adds or replaces a workspace user with the supplied role.
public void AddUser(string username, Role role)
Parameters
Exceptions
- ArgumentException
Thrown when
usernameis missing or whitespace.