NestedScope Struct¶
Return value of EnterNestedScope
. Should be disposed
by caller when child binding context state should be popped off of
the Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext
.
- Namespace
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext
- Assemblies
- Microsoft.AspNetCore.Mvc.Abstractions
Syntax¶
public struct NestedScope : IDisposable
-
struct
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.
NestedScope
Constructors¶
-
NestedScope
(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext)¶ Initializes the
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope
for aMicrosoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext
.public NestedScope(ModelBindingContext context)
-
Methods¶
-
Dispose
()¶ Exits the
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope
created by callingEnterNestedScope
.public void Dispose()
-