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
)
參數
- fullName
類型:System.String
- 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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。