/// <inheritdoc /> public override XmlElement BuildXmlElement(XmlDocument doc, string name) { XmlElement element = XmlHelper.CreateElement(doc, name); element.AppendChild(APIProperty.BuildXmlElement(doc, ClassHelper.GetMemberName(() => APIProperty))); XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => PropertyRight), PropertyRight); return(element); }
/// <inheritdoc /> public override XmlElement BuildXmlElement(XmlDocument doc, string name) { XmlElement element = XmlHelper.CreateElement(doc, name); element.AppendChild(APIProperty.BuildXmlElement(doc, ClassHelper.GetMemberName(() => APIProperty))); element.AppendChild(PropertyVal.BuildXmlElement(doc, ClassHelper.GetMemberName(() => PropertyVal))); XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => PropertyRight), PropertyRight); if (PropertyEnumValues != null) { element.AppendChild(PropertyEnumValues.BuildXmlElement(doc, ClassHelper.GetMemberName(() => PropertyEnumValues))); } XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => PropertyComment), PropertyComment); XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => PropertyGroup), PropertyGroup); XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => PropertyValueType), PropertyValueType); return(element); }
public FuelSDK.PostReturn Post() { this.GetDataExtensionCustomerKey(); ET_DataExtensionRow tempRow = this; tempRow.CustomerKey = this.DataExtensionCustomerKey; List<APIProperty> lProperties = new List<APIProperty>(); foreach (KeyValuePair<string, string> kvp in this.ColumnValues) { APIProperty tempAPIProp = new APIProperty() { Name = kvp.Key, Value = kvp.Value }; lProperties.Add(tempAPIProp); } tempRow.ColumnValues = null; tempRow.Properties = lProperties.ToArray(); tempRow.DataExtensionName = null; tempRow.DataExtensionCustomerKey = null; return new FuelSDK.PostReturn(tempRow); }