Share via


ViewModelBase.TryResolveService<TService> Method

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

Syntax

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

Type Parameters

  • TService

Return Value

Type: TService
Returns Object.

.NET Framework Security

See Also

Reference

ViewModelBase Class

TryResolveService Overload

Microsoft.TeamFoundation.MVVM Namespace