Share via


TfsConnection.InitializeTeamFoundationObject 方法

若建立的物件實作了 ITfsConnectionObject,就將該物件初始化。

命名空間:  Microsoft.TeamFoundation.Client
組件:  Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)

語法

'宣告
Protected Overridable Function InitializeTeamFoundationObject ( _
    fullName As String, _
    instance As Object _
) As Object
protected virtual Object InitializeTeamFoundationObject(
    string fullName,
    Object instance
)

參數

傳回值

類型: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.

.NET Framework 安全性

請參閱

參考

TfsConnection 類別

Microsoft.TeamFoundation.Client 命名空間