ModelBindingExecutionContext.TryGetService<'TService> Method ()
.NET Framework (current version)
Gets an object that contains values that are used for model binding and that have been stored by using the PublishService<'TService> method.
Assembly: System.Web (in System.Web.dll)
abstract TryGetService<'TService> : unit -> 'TService override TryGetService<'TService> : unit -> 'TService
Return Value
Type: TServiceThe object that contains values that are used for model binding, or the default value of TService if the requested object is not found.
Type Parameters
- TService
The type of the object that contains values that are used for model binding.
.NET Framework
Available since 4.5
Available since 4.5
Show: