Class UsersList
Static class used to hold a list of users to quickly resolve display names.
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public static class UsersList
Remarks
Used for the field values associated with bug ownership.
Methods
View SourceAddUser(string, string)
Add a user to the Microsoft.Internal.Studios.Aruba.Infrastructure.UsersList.Users list.
Declaration
public static void AddUser(string displayName, string emailAddress)
Parameters
| Type | Name | Description |
|---|---|---|
| string | displayName | The display name of the user. |
| string | emailAddress | The email address of the user. |
Remarks
The email address will be parsed to create an alias.
ClearList()
Clears the user list.
Declaration
public static void ClearList()
Remarks
Ensures that users are not carried over when connecting to other titles.
GetOwnershipFieldName()
Gets the field name associated with bug ownership.
Declaration
public static string GetOwnershipFieldName()
Returns
| Type | Description |
|---|---|
| string | An bug field name associated with ownership. |
GetUser(string, StringComparison)
Gets the display name of a user based on input string.
Declaration
public static string GetUser(string input, StringComparison stringComparison)
Parameters
| Type | Name | Description |
|---|---|---|
| string | input | The input string to match against user display names and aliases. |
| StringComparison | stringComparison | The string comparison options to use when matching. |
Returns
| Type | Description |
|---|---|
| string | The display name of the matching user, or an empty string if no match is found. |
SetOwnershipFieldName(string)
Sets the bug ownership field name.
Declaration
public static void SetOwnershipFieldName(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | The field name associated with bug ownership. |