다음을 통해 공유


GetUserFromList Method

Get the user information from a specified list.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function GetUserFromList ( _
    listId As Guid, _
    email As String _
) As MailingListUserData
'Usage
Dim instance As MarketingWebService
Dim listId As Guid
Dim email As String
Dim returnValue As MailingListUserData

returnValue = instance.GetUserFromList(listId, _
    email)
[WebMethodAttribute]
public virtual MailingListUserData GetUserFromList(
    Guid listId,
    string email
)
[WebMethodAttribute]
public:
virtual MailingListUserData^ GetUserFromList(
    Guid listId, 
    String^ email
)
public function GetUserFromList(
    listId : Guid, 
    email : String
) : MailingListUserData

Parameters

Return Value

Type: MailingListUserData
A MailingListUserData instance associated with the user in the list, or nullNothingnullptra null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
EntityStateException

List is not available.

DatabaseIntegrityException

A serious integrity issue with the database.

CommerceResourceDependencyException

The Mailing List is an ExpressionList and the Profiles resource does not exist or is misconfigured.

Remarks

Get the user information from a specified list. If the user cannot be found in the specified list, nullNothingnullptra null reference (Nothing in Visual Basic) is returned.

Use this method to retrieve a specific MailingListUserData containing the MailingListUser object from the database.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace