共用方式為


AddErrors 方法

Adds a collection of errors to the exception's collection of operation response errors.

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

語法

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

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

參數

備註

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