Share via


RoleContext Constructor

Initializes a new instance of the RoleContext class by using the provided indicators for remote role and execution role.

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

Syntax

'Declaration
Public Sub New ( _
    isRemoteRole As Boolean, _
    isExecutionRole As Boolean _
)
public RoleContext(
    bool isRemoteRole,
    bool isExecutionRole
)
public:
RoleContext(
    bool isRemoteRole, 
    bool isExecutionRole
)
new : 
        isRemoteRole:bool * 
        isExecutionRole:bool -> RoleContext
public function RoleContext(
    isRemoteRole : boolean, 
    isExecutionRole : boolean
)

Parameters

  • isRemoteRole
    Type: System.Boolean
    true if this context is for a diagnostic data adapter that is configured for a remote role; false if for a local role.
  • isExecutionRole
    Type: System.Boolean
    true if this context is for a diagnostic data adapter that is configured for the execution role; otherwise, false.

.NET Framework Security

See Also

Reference

RoleContext Class

Microsoft.VisualStudio.TestTools.Execution Namespace