Share via


ValidationResultInfo Constructor (String, Int32, String, IEnumerable<String>)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the ValidationResultInfo class.

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

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    errorCode As Integer, _
    stackTrace As String, _
    sourceMemberNames As IEnumerable(Of String) _
)
public ValidationResultInfo(
    string message,
    int errorCode,
    string stackTrace,
    IEnumerable<string> sourceMemberNames
)
public:
ValidationResultInfo(
    String^ message, 
    int errorCode, 
    String^ stackTrace, 
    IEnumerable<String^>^ sourceMemberNames
)
new : 
        message:string * 
        errorCode:int * 
        stackTrace:string * 
        sourceMemberNames:IEnumerable<string> -> ValidationResultInfo
public function ValidationResultInfo(
    message : String, 
    errorCode : int, 
    stackTrace : String, 
    sourceMemberNames : IEnumerable<String>
)

Parameters

Remarks

This constructor accepts the localized error message, the error code, the optional stack trace, and the collection of the names of the members the error originated from.

See Also

Reference

ValidationResultInfo Class

ValidationResultInfo Overload

System.Web.Http.Data Namespace