ValidationState.AddError 方法 (String, Exception, String)
不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。. Adds an error with the specified message, exception, and binding key to the ValidationState.
命名空間: Microsoft.SqlServer.Management.Sdk.Sfc
組件: Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
語法
'宣告
Public Sub AddError ( _
message As String, _
error As Exception, _
bindingKey As String _
)
'用途
Dim instance As ValidationState
Dim message As String
Dim error As Exception
Dim bindingKey As String
instance.AddError(message, error, bindingKey)
public void AddError(
string message,
Exception error,
string bindingKey
)
public:
void AddError(
String^ message,
Exception^ error,
String^ bindingKey
)
member AddError :
message:string *
error:Exception *
bindingKey:string -> unit
public function AddError(
message : String,
error : Exception,
bindingKey : String
)
參數
- message
型別:System.String
Specifies the error message.
- error
型別:System.Exception
Specifies the exception that is the source of the validation error.
- bindingKey
型別:System.String
Specifies the name of the property that generated the exception.