Share via


DataCollectionEnvironmentContext.CreateForLocalEnvironment Method (DataCollectionContext)

Returns a data collection environment context for a locally hosted agent and controller by using the provided session data collection context.

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

Syntax

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

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionEnvironmentContext
A data collection environment context for a locally hosted agent and controller.

.NET Framework Security

See Also

Reference

DataCollectionEnvironmentContext Class

CreateForLocalEnvironment Overload

Microsoft.VisualStudio.TestTools.Execution Namespace

DataCollectionContext