Share via


DataCollectionEnvironmentContext.CreateForLocalEnvironment Method

Returns a data collection environment context for a locally hosted agent and controller.

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

Syntax

'Declaration
Public Shared Function CreateForLocalEnvironment As DataCollectionEnvironmentContext
public static DataCollectionEnvironmentContext CreateForLocalEnvironment()
public:
static DataCollectionEnvironmentContext^ CreateForLocalEnvironment()
static member CreateForLocalEnvironment : unit -> DataCollectionEnvironmentContext
public static function CreateForLocalEnvironment() : DataCollectionEnvironmentContext

Return Value

Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionEnvironmentContext
A data collection environment context.

.NET Framework Security

See Also

Reference

DataCollectionEnvironmentContext Class

CreateForLocalEnvironment Overload

Microsoft.VisualStudio.TestTools.Execution Namespace