ViewModelBase.ResolveService<TService> Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Resolves the service.

Namespace:  Microsoft.TeamFoundation.MVVM
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)

Syntax

'Declaration
Public Function ResolveService(Of TService As Class) As TService
public TService ResolveService<TService>()
where TService : class
public:
generic<typename TService>
where TService : ref class
TService ResolveService()
member ResolveService : unit -> 'TService  when 'TService : not struct
JScript does not support generic types or methods.

Type Parameters

  • TService

Return Value

Type: TService
Returns IDisposable.

Exceptions

Exception Condition
ServiceNotFoundException

Service not registerd.

.NET Framework Security

See Also

Reference

ViewModelBase Class

Microsoft.TeamFoundation.MVVM Namespace