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
Public method SessionId() Initializes a new instance of the SessionId class.
Public method SessionId(Guid) Initializes a new instance of the SessionId class by using the provided GUID.

Top

Properties

  Name Description
Public propertyStatic member Empty Gets a new SessionId object that has an empty ID.
Public property Id Gets the GUID that was provided when this session ID was created.

Top

Methods

  Name Description
Public method Equals Gets a value that indicates whether the provided object is equal to the current session ID object. (Overrides Object.Equals(Object).)
Public method GetHashCode Serves as the default hash function. (Overrides Object.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace