/// <summary> /// Deprecated Method for adding a new object to the AdLists EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAdLists(AdList adList) { base.AddObject("AdLists", adList); }
/// <summary> /// Create a new AdList object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="imageUrl">Initial value of the ImageUrl property.</param> /// <param name="width">Initial value of the Width property.</param> /// <param name="height">Initial value of the Height property.</param> /// <param name="navigateUrl">Initial value of the NavigateUrl property.</param> /// <param name="alternateText">Initial value of the AlternateText property.</param> /// <param name="keyword">Initial value of the Keyword property.</param> /// <param name="impressions">Initial value of the Impressions property.</param> /// <param name="startDate">Initial value of the StartDate property.</param> /// <param name="endDate">Initial value of the EndDate property.</param> public static AdList CreateAdList(global::System.Int32 id, global::System.String imageUrl, global::System.Int32 width, global::System.Int32 height, global::System.String navigateUrl, global::System.String alternateText, global::System.String keyword, global::System.Int32 impressions, global::System.DateTime startDate, global::System.DateTime endDate) { AdList adList = new AdList(); adList.Id = id; adList.ImageUrl = imageUrl; adList.Width = width; adList.Height = height; adList.NavigateUrl = navigateUrl; adList.AlternateText = alternateText; adList.Keyword = keyword; adList.Impressions = impressions; adList.StartDate = startDate; adList.EndDate = endDate; return adList; }