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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅 通过部分受信任的代码使用库。