ITeamFoundationConnectionManager.Connect Method (TeamProjectPickerMode, Boolean)
Prompts the user to select the TF Context they want to connect to. The mode parameter determines at what level the context is needed (TP, collection, etc). Make sure to pass true for async so that the actual connection and authentication will be done in the background and not block VS.
Namespace: Microsoft.VisualStudio.Services.Integration
Assembly: Microsoft.VisualStudio.Services.Integration (in Microsoft.VisualStudio.Services.Integration.dll)
Syntax
'Declaration
Function Connect ( _
mode As TeamProjectPickerMode, _
asynchronous As Boolean _
) As Boolean
bool Connect(
TeamProjectPickerMode mode,
bool asynchronous
)
bool Connect(
TeamProjectPickerMode mode,
bool asynchronous
)
abstract Connect :
mode:TeamProjectPickerMode *
asynchronous:bool -> bool
function Connect(
mode : TeamProjectPickerMode,
asynchronous : boolean
) : boolean
Parameters
- asynchronous
Type: System.Boolean
Return Value
Type: System.Boolean
.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.