Class CompositeSessionContainerIdentifier
Represents a Composite Session Container Identifier.
Inheritance
Implements
Namespace: MAT.Atlas.Api.Core.Sessions
Assembly: MAT.Atlas.Api.Core.dll
Syntax
public sealed class CompositeSessionContainerIdentifier : ValueType, IFormattable, IComparable, IComparable<CompositeSessionContainerIdentifier>, IEquatable<CompositeSessionContainerIdentifier>
Constructors
CompositeSessionContainerIdentifier(Guid)
Initializes a new instance of the CompositeSessionContainerIdentifier struct.
Declaration
public CompositeSessionContainerIdentifier(Guid guid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | guid | The CompositeSessionContainerIdentifier as a Guid. |
CompositeSessionContainerIdentifier(String)
Initializes a new instance of the CompositeSessionContainerIdentifier struct.
Declaration
public CompositeSessionContainerIdentifier(string guid)
Parameters
Type | Name | Description |
---|---|---|
System.String | guid | The CompositeSessionContainerIdentifier as a string. |
Fields
Empty
A read-only instance of the CompositeSessionContainerIdentifier structure whose value is all zeros.
Declaration
public static readonly CompositeSessionContainerIdentifier Empty
Field Value
Type | Description |
---|---|
CompositeSessionContainerIdentifier |
Methods
CompareTo(CompositeSessionContainerIdentifier)
Compares a CompositeSessionContainerIdentifier to a CompositeSessionContainerIdentifier.
Declaration
public int CompareTo(CompositeSessionContainerIdentifier other)
Parameters
Type | Name | Description |
---|---|---|
CompositeSessionContainerIdentifier | other | The other CompositeSessionContainerIdentifier. |
Returns
Type | Description |
---|---|
System.Int32 | The compare result. |
CompareTo(Object)
Compares a CompositeSessionContainerIdentifier to an object.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object. |
Returns
Type | Description |
---|---|
System.Int32 | The compare result. |
Equals(CompositeSessionContainerIdentifier)
Checks equality between CompositeSessionContainerIdentifier.
Declaration
public bool Equals(CompositeSessionContainerIdentifier other)
Parameters
Type | Name | Description |
---|---|---|
CompositeSessionContainerIdentifier | other | The other CompositeSessionContainerIdentifier. |
Returns
Type | Description |
---|---|
System.Boolean | True if the two values are equal. |
Equals(Object)
Determines whether the specified System.Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
NewIdentifier()
Returns a new unique CompositeSessionContainerIdentifier.
Declaration
public static CompositeSessionContainerIdentifier NewIdentifier()
Returns
Type | Description |
---|---|
CompositeSessionContainerIdentifier | A new unique CompositeSessionContainerIdentifier. |
Parse(String)
Parses the specified input string.
Declaration
public static CompositeSessionContainerIdentifier Parse(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | The input string. |
Returns
Type | Description |
---|---|
CompositeSessionContainerIdentifier |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
ToString(String)
Returns a System.String that represents this instance.
Declaration
public string ToString(string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
ToString(String, IFormatProvider)
Returns a System.String that represents this instance.
Declaration
public string ToString(string format, IFormatProvider formatProvider)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
System.IFormatProvider | formatProvider | The format provider. |
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Operators
Equality(CompositeSessionContainerIdentifier, CompositeSessionContainerIdentifier)
Implements the operator ==.
Declaration
public static bool operator ==(CompositeSessionContainerIdentifier identifier1, CompositeSessionContainerIdentifier identifier2)
Parameters
Type | Name | Description |
---|---|---|
CompositeSessionContainerIdentifier | identifier1 | The identifier1. |
CompositeSessionContainerIdentifier | identifier2 | The identifier2. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Explicit(CompositeSessionContainerIdentifier to Guid)
Performs an explicit conversion from CompositeSessionContainerIdentifier to System.Guid.
Declaration
public static explicit operator Guid(CompositeSessionContainerIdentifier instance)
Parameters
Type | Name | Description |
---|---|---|
CompositeSessionContainerIdentifier | instance | The CompositeSessionContainerIdentifier instance. |
Returns
Type | Description |
---|---|
System.Guid | The result of the conversion. |
Explicit(Guid to CompositeSessionContainerIdentifier)
Performs an explicit conversion from System.Guid to CompositeSessionContainerIdentifier.
Declaration
public static explicit operator CompositeSessionContainerIdentifier(Guid value)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | value | The Guid value. |
Returns
Type | Description |
---|---|
CompositeSessionContainerIdentifier | The result of the conversion. |
Inequality(CompositeSessionContainerIdentifier, CompositeSessionContainerIdentifier)
Implements the operator !=.
Declaration
public static bool operator !=(CompositeSessionContainerIdentifier identifier1, CompositeSessionContainerIdentifier identifier2)
Parameters
Type | Name | Description |
---|---|---|
CompositeSessionContainerIdentifier | identifier1 | The identifier1. |
CompositeSessionContainerIdentifier | identifier2 | The identifier2. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |