ModelBindingExecutionContext.TryGetService(Of 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(Of TService) method.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

Public Overridable Function TryGetService(Of TService) As TService

Return Value

Type: TService

The 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
Return to top
Show: