ModelBindingContext.EnterNestedScope Method

Definition

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.

fieldName
String

Name to assign to the FieldName property.

modelName
String

Name to assign to the ModelName property.

model
Object

Instance to assign to the Model property.

Returns

A ModelBindingContext.NestedScope scope object which should be used in a using statement where EnterNestedScope(ModelMetadata, String, String, Object) is called.

Applies to