TeamExplorerPageHost.IServiceContainer.AddService 方法 (Type, Object)
命名空間: Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework
組件: Microsoft.TeamFoundation.Controls (在 Microsoft.TeamFoundation.Controls.dll 中)
語法
'宣告
Private Sub AddService ( _
serviceType As Type, _
serviceInstance As Object _
) Implements IServiceContainer.AddService
void IServiceContainer.AddService(
Type serviceType,
Object serviceInstance
)
參數
- serviceType
型別:System.Type
- serviceInstance
型別:System.Object
實作
IServiceContainer.AddService(Type, Object)
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework 命名空間