DefaultModelBindingContext.EnterNestedScope 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.
Overloads
EnterNestedScope() |
Pushes a layer of state onto this context. IModelBinder implementations will call this as part of recursion when binding properties or collection items. |
EnterNestedScope(ModelMetadata, String, String, Object) |
Pushes a layer of state onto this context. IModelBinder implementations will call this as part of recursion when binding properties or collection items. |
EnterNestedScope()
Pushes a layer of state onto this context. IModelBinder implementations will call this as part of recursion when binding properties or collection items.
public:
override Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext::NestedScope EnterNestedScope();
public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope ();
override this.EnterNestedScope : unit -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope
Public Overrides Function EnterNestedScope () As ModelBindingContext.NestedScope
Returns
A ModelBindingContext.NestedScope scope object which should be used in a using
statement where
EnterNestedScope() is called.
Applies to
EnterNestedScope(ModelMetadata, String, String, Object)
Pushes a layer of state onto this context. IModelBinder implementations will call this as part of recursion when binding properties or collection items.
public:
override Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext::NestedScope EnterNestedScope(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ modelMetadata, System::String ^ fieldName, System::String ^ modelName, System::Object ^ model);
public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, string fieldName, string modelName, object model);
public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, string fieldName, string modelName, object? model);
override this.EnterNestedScope : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * string * string * obj -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope
Public Overrides Function EnterNestedScope (modelMetadata As ModelMetadata, fieldName As String, modelName As String, model As Object) As ModelBindingContext.NestedScope
Parameters
- modelMetadata
- ModelMetadata
ModelMetadata to assign to the ModelMetadata property.
Returns
A ModelBindingContext.NestedScope scope object which should be used in a using
statement where
EnterNestedScope(ModelMetadata, String, String, Object) is called.