InitializeTeamFoundationObject Method

TfsConnection.InitializeTeamFoundationObject Method

Initializes the created object if it implements ITfsConnectionObject.

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

abstract InitializeTeamFoundationObject : 
        fullName:string * 
        instance:Object -> Object  
override InitializeTeamFoundationObject : 
        fullName:string * 
        instance:Object -> Object


Type: System.String
Type: System.Object

Return Value

Type: System.Object

The correct way to derive from this method is to try to initialize the object by checking to see whether it implements the corresponding interface. If it does not, this method should be called in an attempt to initialize it. If this function returns null that means we were not able to initialize it either. It is then up to the derived class to decide what it should do.

© 2016 Microsoft