Class User
Represents a user.
Implements
Inherited Members
Namespace: VMS.TPS.Common.Model.API
Assembly: VMS.TPS.Common.Model.API.dll
Syntax
public class User : SerializableObject, IXmlSerializable
Properties
Id
The identifier of the user.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Language
The language of the user.
Declaration
public string Language { get; }
Property Value
Type | Description |
---|---|
System.String |
Name
The display name of the user.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare with the current object |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified Object is equal to the current Object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for this type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current Object. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
WriteXml(XmlWriter)
Converts an object into its XML representation. For more information on how to serialize an object into an XML document, see System.Xml.Serialization.XmlSerializer.
Declaration
public override void WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | The System.Xml.XmlWriter stream, to which the object is serialized. |
Overrides
Operators
Equality(User, User)
The equality operator.
Declaration
public static bool operator ==(User a, User b)
Parameters
Type | Name | Description |
---|---|---|
User | a | First operand. |
User | b | Second operand. |
Returns
Type | Description |
---|---|
System.Boolean | True if the given User is the same. |
Inequality(User, User)
The inequality operator.
Declaration
public static bool operator !=(User a, User b)
Parameters
Type | Name | Description |
---|---|---|
User | a | First operand. |
User | b | Second operand. |
Returns
Type | Description |
---|---|
System.Boolean | True if the given User is not the same. |