ValidationResultInfo Constructor (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 message and a 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, _
sourceMemberNames As IEnumerable(Of String) _
)
'Usage
Dim message As String
Dim sourceMemberNames As IEnumerable(Of String)
Dim instance As New ValidationResultInfo(message, _
sourceMemberNames)
public ValidationResultInfo(
string message,
IEnumerable<string> sourceMemberNames
)
public:
ValidationResultInfo(
String^ message,
IEnumerable<String^>^ sourceMemberNames
)
new :
message:string *
sourceMemberNames:IEnumerable<string> -> ValidationResultInfo
public function ValidationResultInfo(
message : String,
sourceMemberNames : IEnumerable<String>
)
Parameters
- message
Type: System.String
The localized error message.
- sourceMemberNames
Type: System.Collections.Generic.IEnumerable<String>
The names of the members the error originated from.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | message or sourceMemberNames is nulla null reference (Nothing in Visual Basic). |