1 //------------------------------------------------------------------------------
2 // <copyright file="XmlAnyElementAttribute.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">[....]</owner>
6 //------------------------------------------------------------------------------
8 namespace System.Xml.Serialization {
10 using System.Xml.Schema;
12 /// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute"]/*' />
14 /// <para>[To be supplied.]</para>
16 [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=true)]
17 public class XmlAnyElementAttribute : System.Attribute {
21 bool nsSpecified = false;
23 /// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.XmlAnyElementAttribute"]/*' />
25 /// <para>[To be supplied.]</para>
27 public XmlAnyElementAttribute() {
30 /// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.XmlAnyElementAttribute1"]/*' />
32 /// <para>[To be supplied.]</para>
34 public XmlAnyElementAttribute(string name) {
38 /// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.XmlAnyElementAttribute2"]/*' />
40 /// <para>[To be supplied.]</para>
42 public XmlAnyElementAttribute(string name, string ns) {
48 /// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.Name"]/*' />
50 /// <para>[To be supplied.]</para>
53 get { return name == null ? string.Empty : name; }
57 /// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.Namespace"]/*' />
59 /// <para>[To be supplied.]</para>
61 public string Namespace {
69 /// <include file='doc\XmlAnyElementAttribute.uex' path='docs/doc[@for="XmlAnyElementAttribute.Order"]/*' />
71 /// <para>[To be supplied.]</para>
77 throw new ArgumentException(Res.GetString(Res.XmlDisallowNegativeValues), "Order");
82 internal bool NamespaceSpecified {
83 get { return nsSpecified; }