共用方式為


ASExecuteDDLTask.ValidateDDL 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Verifies that the DDL task is properly configured.

命名空間:  Microsoft.DataTransformationServices.Tasks.DTSProcessingTask
組件:  Microsoft.SqlServer.ASTasks (在 Microsoft.SqlServer.ASTasks.dll 中)

語法

'宣告
Protected Overrides Function ValidateDDL ( _
    variableDispenser As VariableDispenser, _
    connections As Connections, _
    <OutAttribute> ByRef ex As Exception _
) As Boolean
'用途
Dim variableDispenser As VariableDispenser 
Dim connections As Connections 
Dim ex As Exception 
Dim returnValue As Boolean 

returnValue = Me.ValidateDDL(variableDispenser, _
    connections, ex)
protected override bool ValidateDDL(
    VariableDispenser variableDispenser,
    Connections connections,
    out Exception ex
)
protected:
virtual bool ValidateDDL(
    VariableDispenser^ variableDispenser, 
    Connections^ connections, 
    [OutAttribute] Exception^% ex
) override
abstract ValidateDDL : 
        variableDispenser:VariableDispenser * 
        connections:Connections * 
        ex:Exception byref -> bool  
override ValidateDDL : 
        variableDispenser:VariableDispenser * 
        connections:Connections * 
        ex:Exception byref -> bool
protected override function ValidateDDL(
    variableDispenser : VariableDispenser, 
    connections : Connections, 
    ex : Exception
) : boolean

參數

  • ex
    型別:System.Exception%
    When this method returns, contains the exception during validation if any or nullnull 參考 (在 Visual Basic 中為 Nothing) if no exception has occurred.

傳回值

型別:System.Boolean
true if the validation succeeded; otherwise, false.

請參閱

參考

ASExecuteDDLTask 類別

Microsoft.DataTransformationServices.Tasks.DTSProcessingTask 命名空間