ModelBindingContext.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()
- Source:
- ModelBindingContext.cs
- Source:
- ModelBindingContext.cs
- Source:
- ModelBindingContext.cs
Pushes a layer of state onto this context. IModelBinder implementations will call this as part of recursion when binding properties or collection items.
public:
abstract Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext::NestedScope EnterNestedScope();
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope ();
abstract member EnterNestedScope : unit -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope
Public MustOverride 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)
- Source:
- ModelBindingContext.cs
- Source:
- ModelBindingContext.cs
- Source:
- ModelBindingContext.cs
Pushes a layer of state onto this context. IModelBinder implementations will call this as part of recursion when binding properties or collection items.
public:
abstract Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext::NestedScope EnterNestedScope(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ modelMetadata, System::String ^ fieldName, System::String ^ modelName, System::Object ^ model);
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, string fieldName, string modelName, object model);
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, string fieldName, string modelName, object? model);
abstract member EnterNestedScope : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * string * string * obj -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope
Public MustOverride 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.