BeginExport Method

Begins an asynchronous export operation.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Function BeginExport ( _
    listId As Guid, _
    fileName As String, _
    <OutAttribute> ByRef operationId As Guid, _
    callback As AsyncCallback, _
    asyncState As Object _
) As IAsyncResult
'Usage
Dim instance As MailingListManager
Dim listId As Guid
Dim fileName As String
Dim operationId As Guid
Dim callback As AsyncCallback
Dim asyncState As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginExport(listId, _
    fileName, operationId, callback, _
    asyncState)
public IAsyncResult BeginExport(
    Guid listId,
    string fileName,
    out Guid operationId,
    AsyncCallback callback,
    Object asyncState
)
public:
IAsyncResult^ BeginExport(
    Guid listId, 
    String^ fileName, 
    [OutAttribute] Guid% operationId, 
    AsyncCallback^ callback, 
    Object^ asyncState
)
public function BeginExport(
    listId : Guid, 
    fileName : String, 
    operationId : Guid, 
    callback : AsyncCallback, 
    asyncState : Object
) : IAsyncResult

Parameters

  • operationId
    Type: System..::.Guid%
    Receives the Id of the export operation.
  • callback
    Type: System..::.AsyncCallback
    The delegate to call when the asynchronous invoke is completed. If callback is nullNothingnullptra null reference (Nothing in Visual Basic), the delegate is not called.
  • asyncState
    Type: System..::.Object
    Optional data that is passed to the callback when the export has completed.

Return Value

Type: System..::.IAsyncResult
An IAsyncResult object representing the status of the asynchronous operation that is passed to the EndExport method.

Exceptions

Exception Condition
ArgumentNullException

The fileName parameter was nullNothingnullptra null reference (Nothing in Visual Basic).

CommerceResourceDependencyException

In local mode, if the Mailing List is an Expression List and the Profiles resource does not exist or is misconfigured.

Remarks

The proxy class calls the BeginExport method to start an asynchronous invocation call to the XML Web service method. The returned IAsyncResult represents the status of an asynchronous operation and is passed to Export to obtain the return values from the remote method call.

Permissions

See Also

Reference

MailingListManager Class

MailingListManager Members

Microsoft.CommerceServer.Marketing Namespace