GetList Method
Retrieves the specified existing MailingList.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Function GetList ( _
listId As Guid _
) As MailingList
'Usage
Dim instance As MailingListManager
Dim listId As Guid
Dim returnValue As MailingList
returnValue = instance.GetList(listId)
public MailingList GetList(
Guid listId
)
public:
MailingList^ GetList(
Guid listId
)
public function GetList(
listId : Guid
) : MailingList
Parameters
- listId
Type: System..::.Guid
Id of the MailingList to retrieve.
Return Value
Type: Microsoft.CommerceServer.Marketing..::.MailingList
The MailingList retrieved from the database.
Exceptions
Exception | Condition |
---|---|
EntityDoesNotExistException | Mailing list with this listId does not exist. |
Remarks
Returns a mailing list by the unique identifier.
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.