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