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 | |
|---|---|---|
| .gif) | SessionId() | Initializes a new instance of the SessionId class. | 
| .gif) | SessionId(Guid) | Initializes a new instance of the SessionId class by using the provided GUID. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) .gif) | Empty | Gets a new SessionId object that has an empty ID. | 
| .gif) | Id | Gets the GUID that was provided when this session ID was created. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Gets a value that indicates whether the provided object is equal to the current session ID object. (Overrides Object.Equals(Object).) | 
| .gif) | GetHashCode | Serves as the default hash function. (Overrides Object.GetHashCode.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | 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.