Partager via


ModelStateFormatterLogger Class

This IFormatterLogger logs formatter errors to the provided ModelStateDictionary.

Inheritance Hierarchy

System.Object
  System.Web.Http.Validation.ModelStateFormatterLogger

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

Syntax

'Declaration
Public Class ModelStateFormatterLogger _
    Implements IFormatterLogger
'Usage
Dim instance As ModelStateFormatterLogger
public class ModelStateFormatterLogger : IFormatterLogger
public ref class ModelStateFormatterLogger : IFormatterLogger
type ModelStateFormatterLogger =  
    class 
        interface IFormatterLogger 
    end
public class ModelStateFormatterLogger implements IFormatterLogger

The ModelStateFormatterLogger type exposes the following members.

Constructors

  Name Description
Public method ModelStateFormatterLogger Initializes a new instance of the ModelStateFormatterLogger class.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method LogError(String, Exception) Logs the specified model error.
Public method LogError(String, String) Logs the specified model error.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

No content here will be updated; please do not add material here.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.Validation Namespace