Export (0) Print
Expand All

HttpParameterBinding.IsValid Property

Gets a value that indicates whether the binding was successful.

Namespace:  System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)

public bool IsValid { get; }

Property Value

Type: System.Boolean
true if the binding was successful; otherwise, false.

If the value is true, the ExecuteBindingAsync(ModelMetadataProvider, HttpActionContext, CancellationToken) method can be called. If false, the ErrorMessage property contains an error message.

© 2015 Microsoft