ModelMethodContext.Current Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the ModelMethodContext object that corresponds to the Page object that is in the HttpContext.Current property.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public static ModelMethodContext Current { get; }

Property Value

Type: System.Web.UI.WebControls.ModelMethodContext

The ModelMethodContext object., or null if the current request is not for a page.

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

.NET Framework
Available since 4.5
Return to top