Share via


RunStateEvent Class

Represents a request to change the state of a test run.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.Common.TestMessage
    Microsoft.VisualStudio.TestTools.Common.RunStateEvent

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class RunStateEvent _
    Inherits TestMessage _
    Implements ISerializable
[SerializableAttribute]
public class RunStateEvent : TestMessage, 
    ISerializable
[SerializableAttribute]
public ref class RunStateEvent : public TestMessage, 
    ISerializable
[<SerializableAttribute>]
type RunStateEvent =  
    class 
        inherit TestMessage 
        interface ISerializable 
    end
public class RunStateEvent extends TestMessage implements ISerializable

The RunStateEvent type exposes the following members.

Constructors

  Name Description
Protected method RunStateEvent() Initializes a new instance of the RunStateEvent class.
Protected method RunStateEvent(SerializationInfo, StreamingContext) Initializes a new instance of the RunStateEvent class from XML by using the provided information and context.
Public method RunStateEvent(Guid, RunState, String) Initializes a new instance of the RunStateEvent class by using the provided test run ID, state, and computer name.
Public method RunStateEvent(Guid, RunState, String, DateTime) Initializes a new instance of the RunStateEvent class by using the provided test run ID, state, computer name, and time stamp.

Top

Properties

  Name Description
Public property Computer Gets the name of the computer that requested the change in run state.
Public property NewState Gets the new setting for the run state.
Public property RunId Gets the ID of the test run.
Public property Timestamp Gets the date and time of the request to change the run state.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObjectData Populates a SerializationInfo by using the data that is required to serialize the target object. (Overrides TestMessage.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsValid Returns a value that indicates whether the request to change the run state is valid. (Overrides TestMessage.IsValid().)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string representation of this request to change the run state. (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

RunState

TestState

TestStateEvent