43 instantiations of XAttribute
System.Activities.Presentation (7)
System.Activities.Presentation\System\Activities\Presentation\View\NamespaceDisplayAutomationPeer.cs (2)
28new XAttribute("Status", namespaceDisplay.IsInvalid ? "Invalid" : "Valid"), 29new XAttribute("ErrorMessage", namespaceDisplay.ErrorMessage));
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierDesigner.xaml.cs (2)
204new XAttribute("Status", vbIdentifier.IsValid ? "Valid" : "Invalid"), 205new XAttribute("WarningMessage", vbIdentifier.ErrorMessage));
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditorAutomationPeer.cs (3)
27new XAttribute("Status", textBox.HasErrors ? "Invalid" : "Valid"), 28new XAttribute("EditingState", textBox.EditingState.ToString()), 29new XAttribute("ErrorMessage", String.IsNullOrEmpty(textBox.ErrorMessage) ? String.Empty : textBox.ErrorMessage));
System.Data.Services.Design (1)
System\Data\EntityModel\EntityClassGenerator.cs (1)
553e.Add(new XAttribute(newNamespace.GetName(attribute.Name.LocalName), attribute.Value));
System.ServiceModel.Web (23)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (23)
77new XElement(HtmlTdElementName, new XAttribute(HtmlTitleAttributeName, BuildFullUriTemplate(baseUri, operationHelpInfo.UriTemplate)), 79new XAttribute(HtmlRelAttributeName, HtmlOperationClass), 80new XAttribute(HtmlHrefAttributeName, String.Format(CultureInfo.InvariantCulture, HelpOperationPageUrl, operationHelpInfo.Name)), operationHelpInfo.Method)), 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), 102new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageOperationsAt, baseUri)), 120XElement div = new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 121new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageReferenceFor, BuildFullUriTemplate(baseUri, operationInfo.UriTemplate))), 144XElement div = new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 145new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageTitleText))); 162XElement div = new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 163new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageRequestErrorTitle))); 201XElement div = new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 202new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageTitleText))); 219XElement div = new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 220new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageTitleText)), 272contentTd.Add(new XElement(HtmlAElementName, new XAttribute(HtmlHrefAttributeName, "#" + (isRequest ? HtmlRequestXmlId : HtmlResponseXmlId)), SR2.GetString(SR2.HelpPageExample))); 280contentTd.Add(new XElement(HtmlAElementName, new XAttribute(HtmlHrefAttributeName, "#" + (isRequest ? HtmlRequestSchemaId : HtmlResponseSchemaId)), SR2.GetString(SR2.HelpPageSchema))); 289new XElement(HtmlAElementName, new XAttribute(HtmlHrefAttributeName, "#" + (isRequest ? HtmlRequestJsonId : HtmlResponseJsonId)), SR2.GetString(SR2.HelpPageExample))))); 361new XElement(HtmlPreElementName, new XAttribute(HtmlClassAttributeName, label), content)); 366new XElement(HtmlAElementName, new XAttribute(HtmlNameAttributeName, label), title), 367new XElement(HtmlPreElementName, new XAttribute(HtmlClassAttributeName, label), content));
System.Xml.Linq (10)
System\Xml\Linq\XLinq.cs (8)
3039e.AppendAttributeSkipNotify(new XAttribute(aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value)); 3113XAttribute a = new XAttribute(aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 3514AppendAttributeSkipNotify(new XAttribute(a)); 4358AppendAttribute(new XAttribute(name, value)); 4975if (a.parent != null) a = new XAttribute(a); 4981if (a.parent != null) a = new XAttribute(a); 5084XAttribute a = new XAttribute(XNamespace.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 7927XAttribute a = new XAttribute(attrName, attrValue);
System\Xml\Linq\XNodeNavigator.cs (1)
760System.Threading.Interlocked.CompareExchange(ref XmlNamespaceDeclaration, new XAttribute(XNamespace.Xmlns.GetName("xml"), XNamespace.xmlPrefixNamespace), null);
System\Xml\Linq\XNodeValidator.cs (1)
234a = new XAttribute(XNamespace.Get(sa.QualifiedName.Namespace).GetName(sa.QualifiedName.Name), GetDefaultValue(sa));
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\GenerateTemporaryAssemblyTask.cs (2)
159XAttribute include = new XAttribute("Include", item.ItemSpec); 181newResource.Add(new XAttribute("Include", item.ItemSpec));
309 references to XAttribute
System.Data.Services.Client (2)
System\Data\Services\Client\AtomMaterializer.cs (1)
1495var attribute = element.Attribute(XName.Get(localName, item.SegmentNamespaceUri));
System\Data\Services\Client\XmlUtil.cs (1)
244foreach (var attribute in e.Attributes())
System.Data.Services.Design (13)
System\Data\EntityModel\EntityClassGenerator.cs (6)
468XAttribute version = dataServiceElement.Attributes(metadataNs + XmlConstants.HttpDataServiceVersion).FirstOrDefault(); 517List<XAttribute> attributesToReplace = null; 518foreach (XAttribute attribute in e.Attributes()) 536foreach (XAttribute attribute in attributesToReplace) 540XAttribute existingAttribute = e.Attributes().SingleOrDefault(a => a.Name.NamespaceName == XmlConstants.EdmV1dot2Namespace && a.Name.LocalName == attribute.Name.LocalName); 613private static bool IsOpenTypeAttribute(XAttribute attribute)
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (7)
216private static bool IsAttributeExpected(XAttribute attribute, XmlSchemaAnyAttribute anyAttribute, XmlSchemaAttribute[] expectedAttributes) 294foreach (XAttribute attribute in element.Attributes()) 323foreach (XAttribute attribute in element.Attributes()) 356foreach (XAttribute attribute in element.Attributes()) 405List<XAttribute> unexpectedAttributes = null; 407foreach (XAttribute attribute in element.Attributes()) 422foreach (var attribute in unexpectedAttributes)
System.Xml.Linq (293)
System\Xml\Linq\XComponentModel.cs (13)
43else if (typeof(T) == typeof(XAttribute)) { 118XDeferredSingleton<XAttribute> value; 119XAttribute changeState; 125return value = new XDeferredSingleton<XAttribute>((e, n) => e.Attribute(n), component as XElement, null); 132XAttribute a = sender as XAttribute; 138a = sender as XAttribute; 151XAttribute a = sender as XAttribute; 369class XAttributeValuePropertyDescriptor : XPropertyDescriptor<XAttribute, string> 371XAttribute attribute; 381attribute = component as XAttribute; 387attribute = component as XAttribute;
System\Xml\Linq\XLinq.cs (238)
1455/// Note that an <see cref="XAttribute"/> is not an <see cref="XNode"/>. 2435XAttribute a = content as XAttribute; 2604/// include <see cref="XAttribute"/>s. 2609/// that the content does not include <see cref="XAttribute"/>s. 2707internal virtual void AddAttribute(XAttribute a) { 2710internal virtual void AddAttributeSkipNotify(XAttribute a) { 2725XAttribute a = content as XAttribute; 3113XAttribute a = new XAttribute(aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 3352if (content is XAttribute) throw new ArgumentException(Res.GetString(Res.Argument_AddAttribute)); 3456internal XAttribute lastAttr; 3510XAttribute a = other.lastAttr; 3545public XAttribute FirstAttribute { 3582public XAttribute LastAttribute { 3675/// Returns the <see cref="XAttribute"/> associated with this <see cref="XElement"/> that has this 3679/// The <see cref="XName"/> of the <see cref="XAttribute"/> to get. 3682/// The <see cref="XAttribute"/> with the <see cref="XName"/> passed in. If there is no <see cref="XAttribute"/> 3685public XAttribute Attribute(XName name) { 3686XAttribute a = lastAttr; 3697/// Returns the <see cref="XAttribute"/> associated with this <see cref="XElement"/>. Optionally 3698/// an <see cref="XName"/> can be given to target a specific <see cref="XAttribute"/>(s). 3701/// Returns all of the <see cref="XAttribute"/>s associated with this <see cref="XElement"/>. 3705/// An <see cref="IEnumerable"/> of <see cref="XAttribute"/> containing all of the <see cref="XAttribute"/>s 3708public IEnumerable<XAttribute> Attributes() { 3713/// Returns the <see cref="XAttribute"/>(s) associated with this <see cref="XElement"/> that has the passed 3718/// The <see cref="XName"/> of the targeted <see cref="XAttribute"/>. 3721/// The <see cref="XAttribute"/>(s) with the matching 3723public IEnumerable<XAttribute> Attributes(XName name) { 3724return name != null ? GetAttributes(name) : XAttribute.EmptySequence; 3804XAttribute a = e.lastAttr; 4111XAttribute a = lastAttr.next; 4333/// <seealso cref="XAttribute.SetValue"/> 4349XAttribute a = Attribute(name); 4368/// <seealso cref="XAttribute.SetValue"/> 4400/// <seealso cref="XAttribute.SetValue"/> 4973internal override void AddAttribute(XAttribute a) { 4979internal override void AddAttributeSkipNotify(XAttribute a) { 4985internal void AppendAttribute(XAttribute a) { 4992internal void AppendAttributeSkipNotify(XAttribute a) { 5005XAttribute a1 = lastAttr; 5006XAttribute a2 = e.lastAttr; 5027IEnumerable<XAttribute> GetAttributes(XName name) { 5028XAttribute a = lastAttr; 5040XAttribute a = e.lastAttr; 5056XAttribute a = lastAttr; 5084XAttribute a = new XAttribute(XNamespace.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 5099internal void RemoveAttribute(XAttribute a) { 5102XAttribute p = lastAttr, n; 5118XAttribute a = lastAttr; 5120XAttribute next = a.next; 5199XAttribute a = e.lastAttr; 5213XAttribute a = e.lastAttr; 5238XAttribute a = e.lastAttr; 5955internal override void AddAttribute(XAttribute a) { 5959internal override void AddAttributeSkipNotify(XAttribute a) { 6533[System.ComponentModel.TypeDescriptionProvider(typeof(MS.Internal.Xml.Linq.ComponentModel.XTypeDescriptionProvider<XAttribute>))] 6538static IEnumerable<XAttribute> emptySequence; 6543public static IEnumerable<XAttribute> EmptySequence { 6545if (emptySequence == null) emptySequence = new XAttribute[0]; 6550internal XAttribute next; 6555/// Initializes a new instance of the <see cref="XAttribute"/> class. 6558/// Initializes a new instance of the <see cref="XAttribute"/> class from 6583/// <param name="other"><see cref="XAttribute"/> object to copy from.</param> 6585/// Thrown if the specified <see cref="XAttribute"/> is null. 6587public XAttribute(XAttribute other) { 6620public XAttribute NextAttribute { 6643public XAttribute PreviousAttribute { 6646XAttribute a = ((XElement)parent).lastAttr; 6685/// Sets the value of this <see cref="XAttribute"/>. 6703/// Override for <see cref="ToString()"/> on <see cref="XAttribute"/> 6718/// Cast the value of this <see cref="XAttribute"/> to a <see cref="string"/>. 6721/// The <see cref="XAttribute"/> to cast to <see cref="string"/>. 6724/// The content of this <see cref="XAttribute"/> as a <see cref="string"/>. 6727public static explicit operator string(XAttribute attribute) { 6733/// Cast the value of this <see cref="XAttribute"/> to a <see cref="bool"/>. 6736/// The <see cref="XAttribute"/> to cast to <see cref="bool"/>. 6739/// The content of this <see cref="XAttribute"/> as a <see cref="bool"/>. 6745public static explicit operator bool(XAttribute attribute) { 6751/// Cast the value of this <see cref="XAttribute"/> to a <see cref="bool"/>?. 6754/// The <see cref="XAttribute"/> to cast to <see cref="bool"/>?. Can be null. 6757/// The content of this <see cref="XAttribute"/> as a <see cref="bool"/>?. 6760public static explicit operator bool?(XAttribute attribute) { 6766/// Cast the value of this <see cref="XAttribute"/> to an <see cref="int"/>. 6769/// The <see cref="XAttribute"/> to cast to <see cref="int"/>. 6772/// The content of this <see cref="XAttribute"/> as an <see cref="int"/>. 6778public static explicit operator int(XAttribute attribute) { 6784/// Cast the value of this <see cref="XAttribute"/> to an <see cref="int"/>?. 6787/// The <see cref="XAttribute"/> to cast to <see cref="int"/>?. Can be null. 6790/// The content of this <see cref="XAttribute"/> as an <see cref="int"/>?. 6793public static explicit operator int?(XAttribute attribute) { 6799/// Cast the value of this <see cref="XAttribute"/> to an <see cref="uint"/>. 6802/// The <see cref="XAttribute"/> to cast to <see cref="uint"/>. 6805/// The content of this <see cref="XAttribute"/> as an <see cref="uint"/>. 6811public static explicit operator uint(XAttribute attribute) { 6817/// Cast the value of this <see cref="XAttribute"/> to an <see cref="uint"/>?. 6820/// The <see cref="XAttribute"/> to cast to <see cref="uint"/>?. Can be null. 6823/// The content of this <see cref="XAttribute"/> as an <see cref="uint"/>?. 6826public static explicit operator uint?(XAttribute attribute) { 6832/// Cast the value of this <see cref="XAttribute"/> to a <see cref="long"/>. 6835/// The <see cref="XAttribute"/> to cast to <see cref="long"/>. 6838/// The content of this <see cref="XAttribute"/> as a <see cref="long"/>. 6844public static explicit operator long(XAttribute attribute) { 6850/// Cast the value of this <see cref="XAttribute"/> to a <see cref="long"/>?. 6853/// The <see cref="XAttribute"/> to cast to <see cref="long"/>?. Can be null. 6856/// The content of this <see cref="XAttribute"/> as a <see cref="long"/>?. 6859public static explicit operator long?(XAttribute attribute) { 6865/// Cast the value of this <see cref="XAttribute"/> to an <see cref="ulong"/>. 6868/// The <see cref="XAttribute"/> to cast to <see cref="ulong"/>. 6871/// The content of this <see cref="XAttribute"/> as an <see cref="ulong"/>. 6877public static explicit operator ulong(XAttribute attribute) { 6883/// Cast the value of this <see cref="XAttribute"/> to an <see cref="ulong"/>?. 6886/// The <see cref="XAttribute"/> to cast to <see cref="ulong"/>?. Can be null. 6889/// The content of this <see cref="XAttribute"/> as an <see cref="ulong"/>?. 6892public static explicit operator ulong?(XAttribute attribute) { 6898/// Cast the value of this <see cref="XAttribute"/> to a <see cref="float"/>. 6901/// The <see cref="XAttribute"/> to cast to <see cref="float"/>. 6904/// The content of this <see cref="XAttribute"/> as a <see cref="float"/>. 6910public static explicit operator float(XAttribute attribute) { 6916/// Cast the value of this <see cref="XAttribute"/> to a <see cref="float"/>?. 6919/// The <see cref="XAttribute"/> to cast to <see cref="float"/>?. Can be null. 6922/// The content of this <see cref="XAttribute"/> as a <see cref="float"/>?. 6925public static explicit operator float?(XAttribute attribute) { 6931/// Cast the value of this <see cref="XAttribute"/> to a <see cref="double"/>. 6934/// The <see cref="XAttribute"/> to cast to <see cref="double"/>. 6937/// The content of this <see cref="XAttribute"/> as a <see cref="double"/>. 6943public static explicit operator double(XAttribute attribute) { 6949/// Cast the value of this <see cref="XAttribute"/> to a <see cref="double"/>?. 6952/// The <see cref="XAttribute"/> to cast to <see cref="double"/>?. Can be null. 6955/// The content of this <see cref="XAttribute"/> as a <see cref="double"/>?. 6958public static explicit operator double?(XAttribute attribute) { 6964/// Cast the value of this <see cref="XAttribute"/> to a <see cref="decimal"/>. 6967/// The <see cref="XAttribute"/> to cast to <see cref="decimal"/>. 6970/// The content of this <see cref="XAttribute"/> as a <see cref="decimal"/>. 6976public static explicit operator decimal(XAttribute attribute) { 6982/// Cast the value of this <see cref="XAttribute"/> to a <see cref="decimal"/>?. 6985/// The <see cref="XAttribute"/> to cast to <see cref="decimal"/>?. Can be null. 6988/// The content of this <see cref="XAttribute"/> as a <see cref="decimal"/>?. 6991public static explicit operator decimal?(XAttribute attribute) { 6997/// Cast the value of this <see cref="XAttribute"/> to a <see cref="DateTime"/>. 7000/// The <see cref="XAttribute"/> to cast to <see cref="DateTime"/>. 7003/// The content of this <see cref="XAttribute"/> as a <see cref="DateTime"/>. 7009public static explicit operator DateTime(XAttribute attribute) { 7015/// Cast the value of this <see cref="XAttribute"/> to a <see cref="DateTime"/>?. 7018/// The <see cref="XAttribute"/> to cast to <see cref="DateTime"/>?. Can be null. 7021/// The content of this <see cref="XAttribute"/> as a <see cref="DateTime"/>?. 7024public static explicit operator DateTime?(XAttribute attribute) { 7030/// Cast the value of this <see cref="XAttribute"/> to a <see cref="DateTimeOffset"/>. 7033/// The <see cref="XAttribute"/> to cast to <see cref="DateTimeOffset"/>. 7036/// The content of this <see cref="XAttribute"/> as a <see cref="DateTimeOffset"/>. 7042public static explicit operator DateTimeOffset(XAttribute attribute) { 7048/// Cast the value of this <see cref="XAttribute"/> to a <see cref="DateTimeOffset"/>?. 7051/// The <see cref="XAttribute"/> to cast to <see cref="DateTimeOffset"/>?. Can be null. 7054/// The content of this <see cref="XAttribute"/> as a <see cref="DateTimeOffset"/>?. 7057public static explicit operator DateTimeOffset?(XAttribute attribute) { 7063/// Cast the value of this <see cref="XAttribute"/> to a <see cref="TimeSpan"/>. 7066/// The <see cref="XAttribute"/> to cast to <see cref="TimeSpan"/>. 7069/// The content of this <see cref="XAttribute"/> as a <see cref="TimeSpan"/>. 7075public static explicit operator TimeSpan(XAttribute attribute) { 7081/// Cast the value of this <see cref="XAttribute"/> to a <see cref="TimeSpan"/>?. 7084/// The <see cref="XAttribute"/> to cast to <see cref="TimeSpan"/>?. Can be null. 7087/// The content of this <see cref="XAttribute"/> as a <see cref="TimeSpan"/>?. 7090public static explicit operator TimeSpan?(XAttribute attribute) { 7096/// Cast the value of this <see cref="XAttribute"/> to a <see cref="Guid"/>. 7099/// The <see cref="XAttribute"/> to cast to <see cref="Guid"/>. 7102/// The content of this <see cref="XAttribute"/> as a <see cref="Guid"/>. 7108public static explicit operator Guid(XAttribute attribute) { 7114/// Cast the value of this <see cref="XAttribute"/> to a <see cref="Guid"/>?. 7117/// The <see cref="XAttribute"/> to cast to <see cref="Guid"/>?. Can be null. 7120/// The content of this <see cref="XAttribute"/> as a <see cref="Guid"/>?. 7123public static explicit operator Guid?(XAttribute attribute) { 7400List<XAttribute> attributes; 7406attributes = new List<XAttribute>(); 7415foreach (XAttribute a in attributes) { 7438foreach (XAttribute a in attributes) { 7457XAttribute a = content as XAttribute; 7480void WriteAttribute(XAttribute a) { 7517/// Returns all of the <see cref="XAttribute"/>s for each <see cref="XElement"/> of 7521/// An <see cref="IEnumerable"/> of <see cref="XAttribute"/> containing the XML 7525public static IEnumerable<XAttribute> Attributes(this IEnumerable<XElement> source) { 7531/// Returns the <see cref="XAttribute"/>s that have a matching <see cref="XName"/>. Each 7532/// <see cref="XElement"/>'s <see cref="XAttribute"/>s in the target <see cref="IEnumerable"/> 7536/// An <see cref="IEnumerable"/> of <see cref="XAttribute"/> containing the XML 7540public static IEnumerable<XAttribute> Attributes(this IEnumerable<XElement> source, XName name) { 7542return name != null ? GetAttributes(source, name) : XAttribute.EmptySequence; 7756/// Removes each <see cref="XAttribute"/> represented in this <see cref="IEnumerable"/> of 7757/// <see cref="XAttribute"/>. Note that this method uses snapshot semantics (copies the 7760public static void Remove(this IEnumerable<XAttribute> source) { 7762foreach (XAttribute a in new List<XAttribute>(source)) 7777static IEnumerable<XAttribute> GetAttributes(IEnumerable<XElement> source, XName name) { 7780XAttribute a = e.lastAttr; 7927XAttribute a = new XAttribute(attrName, attrValue); 8098XAttribute a = e.lastAttr; 8224XAttribute a = source as XAttribute; 8261XAttribute a = source as XAttribute; 8318XAttribute a = source as XAttribute; 8349return ((XAttribute)o).Value; 8376XAttribute a = e.Attribute(name); 8396XAttribute a = e.Attribute(name); 8429XAttribute a = e.lastAttr; 8471XAttribute a = e.lastAttr; 8498XAttribute a = e.lastAttr; 8538XAttribute a = e.lastAttr; 8574XAttribute a = e.lastAttr; 8603XAttribute a = e.lastAttr; 8625XAttribute a = source as XAttribute; 8627a = parent as XAttribute; 8689XAttribute a = source as XAttribute; 8691a = parent as XAttribute; 8735XAttribute a = source as XAttribute; 8944XAttribute a = source as XAttribute; 8948a = parent as XAttribute; 8964XAttribute a = source as XAttribute; 8972a = parent as XAttribute; 9012XAttribute a = source as XAttribute; 9057bool ReadIntoAttribute(XAttribute a) { 9063bool ReadOverAttribute(XAttribute a, bool skipContent) { 9100if (parent is XAttribute) { 9101XAttribute a = (XAttribute)parent; 9119bool IsDuplicateNamespaceAttribute(XAttribute candidateAttribute) { 9129bool IsDuplicateNamespaceAttributeInner(XAttribute candidateAttribute) { 9152XAttribute a = element.lastAttr; 9183XAttribute GetFirstNonDuplicateNamespaceAttribute(XAttribute candidate) {
System\Xml\Linq\XNodeNavigator.cs (29)
37static XAttribute XmlNamespaceDeclaration; 75XAttribute a = e.lastAttr; 128XAttribute a = source as XAttribute; 161XAttribute a = source as XAttribute; 214XAttribute a = source as XAttribute; 246return ((XAttribute)o).Value; 294XAttribute a = e.lastAttr; 367XAttribute a = e.lastAttr; 408XAttribute a = null; 448XAttribute a = GetFirstNamespaceDeclarationGlobal(e); 527XAttribute a = source as XAttribute; 544XAttribute a = source as XAttribute; 696static bool IsXmlNamespaceDeclaration(XAttribute a) { 704static XAttribute GetFirstNamespaceDeclarationGlobal(XElement e) { 706XAttribute a = GetFirstNamespaceDeclarationLocal(e); 715static XAttribute GetFirstNamespaceDeclarationLocal(XElement e) { 716XAttribute a = e.lastAttr; 728static XAttribute GetNextNamespaceDeclarationGlobal(XAttribute a) { 733XAttribute next = GetNextNamespaceDeclarationLocal(a); 744static XAttribute GetNextNamespaceDeclarationLocal(XAttribute a) { 758static XAttribute GetXmlNamespaceDeclaration() { 765static bool HasNamespaceDeclarationInScope(XAttribute a, XElement e) {
System\Xml\Linq\XNodeValidator.cs (13)
49if (((XAttribute)source).IsNamespaceDeclaration) goto default; 69ValidateAttribute((XAttribute)source); 146XAttribute a = e.lastAttr; 167XAttribute a = e.lastAttr; 202void ValidateAttribute(XAttribute a) { 214XAttribute a = e.lastAttr; 372/// Gets the schema information that has been assigned to the <see cref="XAttribute"/> as a result of schema validation. 376public static IXmlSchemaInfo GetSchemaInfo(this XAttribute source) { 449/// Validate a <see cref="XAttribute"/> 459public static void Validate(this XAttribute source, XmlSchemaObject partialValidationType, XmlSchemaSet schemas, ValidationEventHandler validationEventHandler) { 464/// Validate a <see cref="XAttribute"/> 474/// <param name="addSchemaInfo">If enabled the <see cref="XAttribute"/> is augmented with PSVI 478public static void Validate(this XAttribute source, XmlSchemaObject partialValidationType, XmlSchemaSet schemas, ValidationEventHandler validationEventHandler, bool addSchemaInfo) {
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\GenerateTemporaryAssemblyTask.cs (1)
159XAttribute include = new XAttribute("Include", item.ItemSpec);