Show / Hide Table of Contents

Class UsersList

Static class used to hold a list of users to quickly resolve display names.

Inheritance
object
UsersList
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

AddUser(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.

View Source

ClearList()

Clears the user list.

Declaration
public static void ClearList()
Remarks

Ensures that users are not carried over when connecting to other titles.

View Source

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.

View Source

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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX