다음을 통해 공유


TestStateEvent Constructors

Definition

Overloads

TestStateEvent()

Initializes an instance of the TestStateEvent class.

TestStateEvent(SerializationInfo, StreamingContext)

Initializes an instance of the TestStateEvent class by using the serialization information and context.

TestStateEvent(Guid, Guid, TestState)

Initializes an instance of the TestStateEvent class by using the provided run identifier, execution identifier, and state.

TestStateEvent(Guid, Guid, TestState, DateTime)

Initializes an instance of the TestStateEvent class by using the provided run identifier, execution identifier, state, and time stamp.

TestStateEvent()

Initializes an instance of the TestStateEvent class.

protected:
 TestStateEvent();
protected TestStateEvent ();
Protected Sub New ()

Applies to

TestStateEvent(SerializationInfo, StreamingContext)

Initializes an instance of the TestStateEvent class by using the serialization information and context.

protected:
 TestStateEvent(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TestStateEvent (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Common.TestStateEvent : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Common.TestStateEvent
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

A SerializationInfo object that stores the data that is required to serialize an instance of the TestStateEvent class.

context
StreamingContext

A StreamingContext object that describes the source and the destination of a given stream.

Applies to

TestStateEvent(Guid, Guid, TestState)

Initializes an instance of the TestStateEvent class by using the provided run identifier, execution identifier, and state.

public:
 TestStateEvent(Guid runId, Guid execId, Microsoft::VisualStudio::TestTools::Common::TestState newState);
public TestStateEvent (Guid runId, Guid execId, Microsoft.VisualStudio.TestTools.Common.TestState newState);
new Microsoft.VisualStudio.TestTools.Common.TestStateEvent : Guid * Guid * Microsoft.VisualStudio.TestTools.Common.TestState -> Microsoft.VisualStudio.TestTools.Common.TestStateEvent
Public Sub New (runId As Guid, execId As Guid, newState As TestState)

Parameters

runId
Guid

A Guid that uniquely identifies the test run.

execId
Guid

A Guid that uniquely identifies the execution.

newState
TestState

A member of the TestState enumeration that indicates the state of the test.

Applies to

TestStateEvent(Guid, Guid, TestState, DateTime)

Initializes an instance of the TestStateEvent class by using the provided run identifier, execution identifier, state, and time stamp.

public:
 TestStateEvent(Guid runId, Guid execId, Microsoft::VisualStudio::TestTools::Common::TestState newState, DateTime timestamp);
public TestStateEvent (Guid runId, Guid execId, Microsoft.VisualStudio.TestTools.Common.TestState newState, DateTime timestamp);
new Microsoft.VisualStudio.TestTools.Common.TestStateEvent : Guid * Guid * Microsoft.VisualStudio.TestTools.Common.TestState * DateTime -> Microsoft.VisualStudio.TestTools.Common.TestStateEvent
Public Sub New (runId As Guid, execId As Guid, newState As TestState, timestamp As DateTime)

Parameters

runId
Guid

A Guid that uniquely identifies the test run.

execId
Guid

A Guid that uniquely identifies the execution.

newState
TestState

A member of the TestState enumeration that indicates the state of the test.

timestamp
DateTime

The date and time when the state of the test run was changed.

Applies to