Freigeben über


AddError-Methode

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

Namespace:  Microsoft.MasterDataServices.Deployment
Assembly:  Microsoft.MasterDataServices.Deployment (in Microsoft.MasterDataServices.Deployment.dll)

Syntax

'Declaration
Public Sub AddError ( _
    error As StagingBatchError _
)
'Usage
Dim instance As DeploymentStagingException
Dim error As StagingBatchError

instance.AddError(error)
public void AddError(
    StagingBatchError error
)
public:
void AddError(
    StagingBatchError^ error
)
member AddError : 
        error:StagingBatchError -> unit 
public function AddError(
    error : StagingBatchError
)

Hinweise

AddError throws a ArgumentNullException if the error parameter is null Nothing nullptr unit ein NULL-Verweis (Nothing in Visual Basic) .