ModelBindingExecutionContext.TryGetService<TService> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an object that contains values that are used for model binding and that have been stored by using the PublishService<TService>(TService) method.
public:
generic <typename TService>
virtual TService TryGetService();
public virtual TService TryGetService<TService> ();
abstract member TryGetService : unit -> 'Service
override this.TryGetService : unit -> 'Service
Public Overridable Function TryGetService(Of TService) () As TService
Type Parameters
- TService
The type of the object that contains values that are used for model binding.
Returns
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.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.