Konstruktor ValidationState (String, Exception, String)
Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.. Inicjuje nowe wystąpienie ValidationState klasy z określonego wyjątku, klucz powiązanie i typu błędu.
Przestrzeń nazw: Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw: Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Składnia
'Deklaracja
Public Sub New ( _
message As String, _
error As Exception, _
bindingKey As String _
)
'Użycie
Dim message As String
Dim error As Exception
Dim bindingKey As String
Dim instance As New ValidationState(message, _
error, bindingKey)
public ValidationState(
string message,
Exception error,
string bindingKey
)
public:
ValidationState(
String^ message,
Exception^ error,
String^ bindingKey
)
new :
message:string *
error:Exception *
bindingKey:string -> ValidationState
public function ValidationState(
message : String,
error : Exception,
bindingKey : String
)
Parametry
- message
Typ: System.String
Określa komunikat o błędzie.
- error
Typ: System.Exception
Określa wyjątek, który jest źródło błędu sprawdzania poprawności.
- bindingKey
Typ: System.String
Określa nazwę właściwość, która wygenerowała wyjątek.