Export Method
Exports all users associated with a MailingList to a delimited text file.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Function Export ( _
listId As Guid, _
fileName As String _
) As Guid
'Usage
Dim instance As MailingListManager
Dim listId As Guid
Dim fileName As String
Dim returnValue As Guid
returnValue = instance.Export(listId, _
fileName)
public Guid Export(
Guid listId,
string fileName
)
public:
Guid Export(
Guid listId,
String^ fileName
)
public function Export(
listId : Guid,
fileName : String
) : Guid
Parameters
- listId
Type: System..::.Guid
Id of the MailingList to export.
- fileName
Type: System..::.String
File to which the users in the list will be written.
Return Value
Type: System..::.Guid
The Id of the export operation.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The file name 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
Export contents of a mailing list to the specified text file. Returns the Id of the export list operation. This method is synchronous.
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.