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: 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: Boolean- true if this context is for a diagnostic data adapter that is configured for the execution role; otherwise, false. 
.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.