AddOperationStatus Method (DateTime, DateTime, Int16, Int16, String, String, Guid, String, String)
Add an OperationStatus to this OperationStatusDataSet and return a OperationStatusDataSet..::.OperationStatus.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function AddOperationStatus ( _
StartDate As DateTime, _
EndDate As DateTime, _
PercentComplete As Short, _
Status As Short, _
Operation As String, _
CatalogName As String, _
OperationId As Guid, _
FileName As String, _
Options As String _
) As OperationStatusDataSet..::.OperationStatus
'Usage
Dim instance As OperationStatusDataSet..::.OperationStatusesDataTable
Dim StartDate As DateTime
Dim EndDate As DateTime
Dim PercentComplete As Short
Dim Status As Short
Dim Operation As String
Dim CatalogName As String
Dim OperationId As Guid
Dim FileName As String
Dim Options As String
Dim returnValue As OperationStatusDataSet..::.OperationStatus
returnValue = instance.AddOperationStatus(StartDate, _
EndDate, PercentComplete, Status, _
Operation, CatalogName, OperationId, _
FileName, Options)
public OperationStatusDataSet..::.OperationStatus AddOperationStatus(
DateTime StartDate,
DateTime EndDate,
short PercentComplete,
short Status,
string Operation,
string CatalogName,
Guid OperationId,
string FileName,
string Options
)
public:
OperationStatusDataSet..::.OperationStatus^ AddOperationStatus(
DateTime StartDate,
DateTime EndDate,
short PercentComplete,
short Status,
String^ Operation,
String^ CatalogName,
Guid OperationId,
String^ FileName,
String^ Options
)
public function AddOperationStatus(
StartDate : DateTime,
EndDate : DateTime,
PercentComplete : short,
Status : short,
Operation : String,
CatalogName : String,
OperationId : Guid,
FileName : String,
Options : String
) : OperationStatusDataSet..::.OperationStatus
Parameters
- StartDate
Type: System..::.DateTime
The date the catalog is valid.
- EndDate
Type: System..::.DateTime
The date the catalog validity expires.
- PercentComplete
Type: System..::.Int16
Percent of the import/export completed (Approximated by number of items being export.)
- Status
Type: System..::.Int16
The status of the requested import, export, or rebuild operation.
- Operation
Type: System..::.String
The operation to be completed.
- CatalogName
Type: System..::.String
The name of the catalog.
- OperationId
Type: System..::.Guid
An identifier for the import, export or rebuild operation.
- FileName
Type: System..::.String
The name of the file.
- Options
Type: System..::.String
The options used in the catalog.import/export or rebuild operation.
Return Value
Type: Microsoft.CommerceServer.Catalog..::.OperationStatusDataSet..::.OperationStatus
A OperationStatusDataSet..::.OperationStatus containing the added item.
Remarks
The OperationStatusDataSet 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
OperationStatusDataSet..::.OperationStatusesDataTable Class
OperationStatusDataSet..::.OperationStatusesDataTable Members