61 references to Add
System.Data.Services.Client (2)
System\Data\Services\Client\DataServiceContext.cs (2)
3348complexProperty.Add(new XAttribute(((XNamespace)XmlConstants.DataWebMetadataNamespace) + XmlConstants.AtomTypeAttributeName, typeName)); 3354complexProperty.Add(new XAttribute(((XNamespace)XmlConstants.DataWebMetadataNamespace) + XmlConstants.AtomNullAttributeName, XmlConstants.XmlTrueLiteral));
System.Data.Services.Design (2)
System\Data\EntityModel\EntityClassGenerator.cs (2)
544e.Add(new XAttribute(XNamespace.Get(XmlConstants.EdmV1dot2Namespace) + attribute.Name.LocalName, attribute.Value)); 553e.Add(new XAttribute(newNamespace.GetName(attribute.Name.LocalName), attribute.Value));
System.ServiceModel.Web (34)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (34)
82table.Add(tr); 89firstTr.Descendants(HtmlTdElementName).First().Add(new XAttribute(HtmlRowspanAttributeName, rowspan)); 99firstTr.Descendants(HtmlTdElementName).First().Add(new XAttribute(HtmlRowspanAttributeName, rowspan)); 101document.Descendants(HtmlBodyElementName).First().Add(new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 131div.Add(table); 133document.Descendants(HtmlBodyElementName).First().Add(div); 148div.Add(new XElement(HtmlPElementName, SR2.GetString(SR2.HelpPageMethodNotAllowed))); 152div.Add(XElement.Parse(SR2.GetString(SR2.HelpPageMethodNotAllowedWithLink, HttpUtility.HtmlEncode(helpUri.AbsoluteUri)))); 154document.Descendants(HtmlBodyElementName).First().Add(div); 169div.Add(new XElement(HtmlPElementName, SR2.GetString(SR2.HelpServerErrorProcessingRequestWithDetails, error.Message))); 170div.Add(new XElement(HtmlPElementName, error.StackTrace ?? String.Empty)); 174div.Add(new XElement(HtmlPElementName, SR2.GetString(SR2.HelpServerErrorProcessingRequest))); 184div.Add(XElement.Parse(SR2.GetString(SR2.HelpServerErrorProcessingRequestWithDetailsAndLink, encodedHelpLink, errorMessage))); 185div.Add(new XElement(HtmlPElementName, error.StackTrace ?? String.Empty)); 189div.Add(XElement.Parse(SR2.GetString(SR2.HelpServerErrorProcessingRequestWithLink, encodedHelpLink))); 193document.Descendants(HtmlBodyElementName).First().Add(div); 205div.Add(new XElement(HtmlPElementName, SR2.GetString(SR2.HelpPageEndpointNotFound))); 209div.Add(XElement.Parse(SR2.GetString(SR2.HelpPageEndpointNotFoundWithLink, HttpUtility.HtmlEncode(helpUri.AbsoluteUri)))); 211document.Descendants(HtmlBodyElementName).First().Add(div); 222document.Descendants(HtmlBodyElementName).First().Add(div); 255table.Add(new XElement(HtmlTrElementName, 265table.Add(new XElement(HtmlTrElementName, 272contentTd.Add(new XElement(HtmlAElementName, new XAttribute(HtmlHrefAttributeName, "#" + (isRequest ? HtmlRequestXmlId : HtmlResponseXmlId)), SR2.GetString(SR2.HelpPageExample))); 275contentTd.Add(","); 280contentTd.Add(new XElement(HtmlAElementName, new XAttribute(HtmlHrefAttributeName, "#" + (isRequest ? HtmlRequestSchemaId : HtmlResponseSchemaId)), SR2.GetString(SR2.HelpPageSchema))); 285table.Add(new XElement(HtmlTrElementName, 298element.Add(GenerateSampleXml(operationInfo.Request.XmlExample, SR2.GetString(SR2.HelpPageXmlRequest), HtmlRequestXmlId)); 302element.Add(AddSampleJson(operationInfo.Request.JsonExample, SR2.GetString(SR2.HelpPageJsonRequest), HtmlRequestJsonId)); 306element.Add(GenerateSampleXml(operationInfo.Response.XmlExample, SR2.GetString(SR2.HelpPageXmlResponse), HtmlResponseXmlId)); 310element.Add(AddSampleJson(operationInfo.Response.JsonExample, SR2.GetString(SR2.HelpPageJsonResponse), HtmlResponseJsonId)); 315element.Add(GenerateSampleXml(XmlSchemaToXElement(operationInfo.Request.Schema), SR2.GetString(SR2.HelpPageRequestSchema), HtmlRequestSchemaId)); 321element.Add(GenerateSampleXml(XmlSchemaToXElement(schema), ++count == 1 ? SR2.GetString(SR2.HelpPageAdditionalRequestSchema) : null, HtmlRequestSchemaId)); 327element.Add(GenerateSampleXml(XmlSchemaToXElement(operationInfo.Response.Schema), SR2.GetString(SR2.HelpPageResponseSchema), HtmlResponseSchemaId)); 333element.Add(GenerateSampleXml(XmlSchemaToXElement(schema), ++count == 1 ? SR2.GetString(SR2.HelpPageAdditionalResponseSchema) : null, HtmlResponseSchemaId));
System.Xml.Linq (13)
System\Xml\Linq\XLinq.cs (12)
2447foreach (object obj in o) Add(obj); 2452foreach (object obj in e) Add(obj); 2469Add((object)content); 2690Add(content); 3632Add(value); 4144Add(content); 4179Add(content); 7892root.Add(content); 7931parent.Add(a); 7970e.Add(string.Empty); 8033parent.Add(n); 8052parent.Add(s);
System\Xml\Linq\XNodeValidator.cs (1)
236e.Add(a);
XamlBuildTask (10)
Microsoft\Build\Tasks\Xaml\GenerateTemporaryAssemblyTask.cs (10)
155project.Add(newItemGroup); 160newElement.Add(include); 161newItemGroup.Add(newElement); 177project.Add(newItemGroup); 181newResource.Add(new XAttribute("Include", item.ItemSpec)); 184newResource.Add(type); 187newResource.Add(withCulture); 189newItemGroup.Add(newResource); 208project.Add(newPropertyGroup); 219newPropertyGroup.Add(newElement);