AddContactToMarketingListByIdRequest Class


Applies To: Dynamics Marketing

Contains the data that’s needed to add a contact to a list by their external ID or Microsoft Dynamics CRM ID.

Namespace:   Microsoft.Dynamics.Marketing.SDK.Messages.MarketingList
Assembly:  Microsoft.Dynamics.Marketing.SDK (in Microsoft.Dynamics.Marketing.SDK.dll)

Inheritance Hierarchy



public class AddContactToMarketingListByIdRequest : SdkRequest
public ref class AddContactToMarketingListByIdRequest : SdkRequest
type AddContactToMarketingListByIdRequest = 
        inherit SdkRequest
Public Class AddContactToMarketingListByIdRequest
    Inherits SdkRequest


Name Description
System_CAPS_pubmethod AddContactToMarketingListByIdRequest()

Initializes a new instance of the AddContactToMarketingListByIdRequest class.


Name Description
System_CAPS_pubproperty ContactId

Gets or sets contact ID to be added to the marketing list

System_CAPS_pubproperty MarketingListId

Gets or sets the marketing list ID for adding the contact.


Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod ToBrokeredMessage()

Creates a new brokered message with the compressed and serialized SdkMessage.(Inherited from SdkMessage.)

System_CAPS_pubmethod ToBrokeredMessage(String)

Creates a new brokered message with the compressed and serialized SdkMessage.(Inherited from SdkRequest.)

System_CAPS_pubmethod ToString()

Converts the details of the response to a string representation.(Overrides Object.ToString().)


If the ID doesn’t exist in the system as the external ID or CRM ID of a contact, the AddContactToMarketingListByIdRequest will fail.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Dynamics.Marketing.SDK.Messages.MarketingList Namespace
Developer overview of Microsoft Dynamics Marketing
Introduction to marketing entities
Getting started with the SDK
Quick start with sample code
Sample: Work with marketing lists
Assembly included in the Microsoft Dynamics Marketing SDK
Web service and assembly reference

Return to top