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
sessionDataCollectionContext
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContextA DataCollectionContext object.
Return Value
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionEnvironmentContext
A data collection environment context for a locally hosted agent and controller.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataCollectionEnvironmentContext Class
CreateForLocalEnvironment Overload