共用方式為


AddErrors 方法

Adds a collection of errors to the exception's collection of staging batch errors.

命名空間:  Microsoft.MasterDataServices.Deployment
組件:  Microsoft.MasterDataServices.Deployment (在 Microsoft.MasterDataServices.Deployment.dll 中)

語法

'宣告
Public Sub AddErrors ( _
    errors As Collection(Of StagingBatchError) _
)
'用途
Dim instance As DeploymentStagingException
Dim errors As Collection(Of StagingBatchError)

instance.AddErrors(errors)
public void AddErrors(
    Collection<StagingBatchError> errors
)
public:
void AddErrors(
    Collection<StagingBatchError^>^ errors
)
member AddErrors : 
        errors:Collection<StagingBatchError> -> unit 
public function AddErrors(
    errors : Collection<StagingBatchError>
)

參數

備註

AddErrors throws a ArgumentNullException if the errors parameter is null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) .