Share via


DataCollectorEnabledByDefaultAttribute Constructor (Boolean)

Initializes an instance of the DataCollectorEnabledByDefaultAttribute class by using the provided value to determine whether the adapter is enabled by default.

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

Syntax

'Declaration
Public Sub New ( _
    isEnabledByDefault As Boolean _
)
public DataCollectorEnabledByDefaultAttribute(
    bool isEnabledByDefault
)
public:
DataCollectorEnabledByDefaultAttribute(
    bool isEnabledByDefault
)
new : 
        isEnabledByDefault:bool -> DataCollectorEnabledByDefaultAttribute
public function DataCollectorEnabledByDefaultAttribute(
    isEnabledByDefault : boolean
)

Parameters

  • isEnabledByDefault
    Type: Boolean

    true to enable the collector by default; otherwise, false.

.NET Framework Security

See Also

Reference

DataCollectorEnabledByDefaultAttribute Class

DataCollectorEnabledByDefaultAttribute Overload

Microsoft.VisualStudio.TestTools.Execution Namespace

DataCollectorEnabledByDefaultAttribute

Other Resources

How to: Create a Diagnostic Data Adapter