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.
- Message
Type: System..::.String
The text describing 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
OperationErrorsDataSet..::.OperationErrorsDataTable Class