SessionId Class
Represents an identifier for a test session. This class cannot be inherited.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.TestTools.Common.SessionId
Namespace: Microsoft.VisualStudio.TestTools.Common
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class SessionId
[SerializableAttribute]
public sealed class SessionId
[SerializableAttribute]
public ref class SessionId sealed
[<Sealed>]
[<SerializableAttribute>]
type SessionId = class end
public final class SessionId
The SessionId type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SessionId() | Initializes a new instance of the SessionId class. | |
SessionId(Guid) | Initializes a new instance of the SessionId class by using the provided GUID. |
Top
Properties
Name | Description | |
---|---|---|
Empty | Gets a new SessionId object that has an empty ID. | |
Id | Gets the GUID that was provided when this session ID was created. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Gets a value that indicates whether the provided object is equal to the current session ID object. (Overrides Object.Equals(Object).) | |
GetHashCode | Serves as the default hash function. (Overrides Object.GetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string version of the GUID. (Overrides Object.ToString.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.