/// <summary> /// Deprecated Method for adding a new object to the UnsubscribedEmails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUnsubscribedEmails(UnsubscribedEmail unsubscribedEmail) { base.AddObject("UnsubscribedEmails", unsubscribedEmail); }
/// <summary> /// Create a new UnsubscribedEmail object. /// </summary> /// <param name="emailAddress">Initial value of the EmailAddress property.</param> /// <param name="listName">Initial value of the ListName property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="updated">Initial value of the Updated property.</param> public static UnsubscribedEmail CreateUnsubscribedEmail(global::System.String emailAddress, global::System.String listName, global::System.DateTime created, global::System.DateTime updated) { UnsubscribedEmail unsubscribedEmail = new UnsubscribedEmail(); unsubscribedEmail.EmailAddress = emailAddress; unsubscribedEmail.ListName = listName; unsubscribedEmail.Created = created; unsubscribedEmail.Updated = updated; return unsubscribedEmail; }