ViewModelBase.TryResolveService<TService> Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Namespace: Microsoft.TeamFoundation.MVVM
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
'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.
- TService
Type: TService
Returns Object.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.