Export (0) Print
Expand All

DataCollectionContext Class

Represents the context in which data collection occurs.

System.Object
  Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext

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

[SerializableAttribute]
public class DataCollectionContext

The DataCollectionContext type exposes the following members.

  NameDescription
Protected methodDataCollectionContext(SessionId)Initializes a new instance of the DataCollectionContext class by using the provided session ID.
Protected methodDataCollectionContext(SessionId, TestExecId)Initializes a new instance of the DataCollectionContext class by using the provided session ID and test execution ID.
Top

  NameDescription
Public propertyHasTestCaseGets a value that indicates whether an executing test case is associated with this context.
Public propertySessionIdGets the SessionId for the session under which the data collection occurs. Will not be null.
Public propertyTestExecIdGets a TestExecId that identifies the test execution under which the data collection occurs.
Top

  NameDescription
Public methodEqualsDetermines whether the specified DataCollectionContext matches the current DataCollectionContext. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a DataCollectionContext. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public operatorStatic memberEqualityReturns a value that indicates whether two instances of DataCollectionContext match.
Public operatorStatic memberInequalityReturns a value that indicates whether two instances of DataCollectionContext do not match.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft