ValidationResultInfo Constructor (String, Int32, String, IEnumerable<String>)
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Initializes a new instance of the ValidationResultInfo class with a localized error, error code, stack trace, and collection of the names of the members the error originated from.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
errorCode As Integer, _
stackTrace As String, _
sourceMemberNames As IEnumerable(Of String) _
)
'Usage
Dim message As String
Dim errorCode As Integer
Dim stackTrace As String
Dim sourceMemberNames As IEnumerable(Of String)
Dim instance As New ValidationResultInfo(message, _
errorCode, stackTrace, sourceMemberNames)
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
- message
Type: System.String
The localized error message.
- errorCode
Type: System.Int32
The custom error code.
- stackTrace
Type: System.String
The error stack trace.
- sourceMemberNames
Type: System.Collections.Generic.IEnumerable<String>
A collection of the names of the members the error originated from.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | message or sourceMemberNames is nulla null reference (Nothing in Visual Basic). |