DefaultModelBindingContext.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:
DefaultModelBindingContext.cs
Source:
DefaultModelBindingContext.cs
Source:
DefaultModelBindingContext.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:
 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)

Source:
DefaultModelBindingContext.cs
Source:
DefaultModelBindingContext.cs
Source:
DefaultModelBindingContext.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:
 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.

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