GetOperationsProgressForUser Method (TimeSpan)
Retrieve the operations for the current user started more recently than the specified date.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function GetOperationsProgressForUser ( _
startedAfter As TimeSpan _
) As OperationsProgress()
'Usage
Dim instance As CatalogContext
Dim startedAfter As TimeSpan
Dim returnValue As OperationsProgress()
returnValue = instance.GetOperationsProgressForUser(startedAfter)
public OperationsProgress[] GetOperationsProgressForUser(
TimeSpan startedAfter
)
public:
array<OperationsProgress^>^ GetOperationsProgressForUser(
TimeSpan startedAfter
)
public function GetOperationsProgressForUser(
startedAfter : TimeSpan
) : OperationsProgress[]
Parameters
- startedAfter
Type: System..::.TimeSpan
A TimeSpan that represents a specified number of days.
Return Value
Type: array<Microsoft.CommerceServer.Catalog..::.OperationsProgress>[]()[]
An OperationsProgress array containing all the operation started by the current user since startedAfter.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | startedAfter is an invalid start time. |
Remarks
To obtain an array of the items for the past 24 hours, use the method GetOperationsProgressForUser() or use the startedAfter value of TimeSpan.FromDays(1).
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.