/// <summary> /// Create a new Alert object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="uid">Initial value of the Uid property.</param> /// <param name="createdTime">Initial value of the CreatedTime property.</param> /// <param name="productName">Initial value of the ProductName property.</param> /// <param name="productVersion">Initial value of the ProductVersion property.</param> /// <param name="receivedTime">Initial value of the ReceivedTime property.</param> /// <param name="transportType">Initial value of the TransportType property.</param> /// <param name="messageTextAsXml">Initial value of the MessageTextAsXml property.</param> /// <param name="timeStamp">Initial value of the TimeStamp property.</param> public static Alert CreateAlert(global::System.Int64 id, global::System.Guid uid, global::System.DateTime createdTime, global::System.String productName, global::System.String productVersion, global::System.DateTime receivedTime, global::System.Int16 transportType, global::System.String messageTextAsXml, global::System.Byte[] timeStamp) { Alert alert = new Alert(); alert.Id = id; alert.Uid = uid; alert.CreatedTime = createdTime; alert.ProductName = productName; alert.ProductVersion = productVersion; alert.ReceivedTime = receivedTime; alert.TransportType = transportType; alert.MessageTextAsXml = messageTextAsXml; alert.TimeStamp = timeStamp; return alert; }
/// <summary> /// Deprecated Method for adding a new object to the Alerts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAlerts(Alert alert) { base.AddObject("Alerts", alert); }