Partager via


AddOperationError Method (Int32, String)

Add an OperationError to this OperationErrorsDataSet and return a OperationErrorsDataSet..::.OperationError.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Function AddOperationError ( _
    LineNumber As Integer, _
    Message As String _
) As OperationErrorsDataSet..::.OperationError
'Usage
Dim instance As OperationErrorsDataSet..::.OperationErrorsDataTable
Dim LineNumber As Integer
Dim Message As String
Dim returnValue As OperationErrorsDataSet..::.OperationError

returnValue = instance.AddOperationError(LineNumber, _
    Message)
public OperationErrorsDataSet..::.OperationError AddOperationError(
    int LineNumber,
    string Message
)
public:
OperationErrorsDataSet..::.OperationError^ AddOperationError(
    int LineNumber, 
    String^ Message
)
public function AddOperationError(
    LineNumber : int, 
    Message : String
) : OperationErrorsDataSet..::.OperationError

Parameters

  • LineNumber
    Type: System..::.Int32
    The line number within the Operation procedure that contains the error.

Return Value

Type: Microsoft.CommerceServer.Catalog..::.OperationErrorsDataSet..::.OperationError
A OperationErrorsDataSet..::.OperationError containing the added item.

Remarks

The OperationErrorsDataSet object must be saved before these changes will be persisted to the database.

Permissions

See Also

Reference

OperationErrorsDataSet..::.OperationErrorsDataTable Class

OperationErrorsDataSet..::.OperationErrorsDataTable Members

AddOperationError Overload

Microsoft.CommerceServer.Catalog Namespace