Share via


TeamProjectPicker.CommitConnectionChange Method (TfsTeamProjectCollection, Boolean)

Commit the connection changes to the local storage and in-memory cache and persist the credentials to the token storage.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Public Shared Sub CommitConnectionChange ( _
    collection As TfsTeamProjectCollection, _
    storeCredentials As Boolean _
)
public static void CommitConnectionChange(
    TfsTeamProjectCollection collection,
    bool storeCredentials
)
public:
static void CommitConnectionChange(
    TfsTeamProjectCollection^ collection, 
    bool storeCredentials
)
static member CommitConnectionChange : 
        collection:TfsTeamProjectCollection * 
        storeCredentials:bool -> unit
public static function CommitConnectionChange(
    collection : TfsTeamProjectCollection, 
    storeCredentials : boolean
)

Parameters

  • storeCredentials
    Type: System.Boolean

    True to also persist the credentials to the token storage

Remarks

Use to manually commit changes when suppressing AutoCommitCollectionChanges and HasNewCredentials is set.

.NET Framework Security

See Also

Reference

TeamProjectPicker Class

CommitConnectionChange Overload

Microsoft.TeamFoundation.Client Namespace