| File: FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlArrayAttribute.cs | Web Access |
| Project: src\src\dotnet-svcutil\lib\src\dotnet-svcutil-lib.csproj (dotnet-svcutil-lib) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.Xml.Serialization { using System; using Microsoft.Xml.Schema; /// <include file='doc\XmlArrayAttribute.uex' path='docs/doc[@for="XmlArrayAttribute"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false)] public class XmlArrayAttribute : System.Attribute { private string _elementName; private string _ns; private bool _nullable; private XmlSchemaForm _form = XmlSchemaForm.None; private int _order = -1; /// <include file='doc\XmlArrayAttribute.uex' path='docs/doc[@for="XmlArrayAttribute.XmlArrayAttribute"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public XmlArrayAttribute() { } /// <include file='doc\XmlArrayAttribute.uex' path='docs/doc[@for="XmlArrayAttribute.XmlArrayAttribute1"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public XmlArrayAttribute(string elementName) { _elementName = elementName; } /// <include file='doc\XmlArrayAttribute.uex' path='docs/doc[@for="XmlArrayAttribute.ElementName"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public string ElementName { get { return _elementName == null ? string.Empty : _elementName; } set { _elementName = value; } } /// <include file='doc\XmlArrayAttribute.uex' path='docs/doc[@for="XmlArrayAttribute.Namespace"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public string Namespace { get { return _ns; } set { _ns = value; } } /// <include file='doc\XmlArrayAttribute.uex' path='docs/doc[@for="XmlArrayAttribute.IsNullable"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public bool IsNullable { get { return _nullable; } set { _nullable = value; } } /// <include file='doc\XmlArrayAttribute.uex' path='docs/doc[@for="XmlArrayAttribute.Form"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public XmlSchemaForm Form { get { return _form; } set { _form = value; } } /// <include file='doc\XmlArrayAttribute.uex' path='docs/doc[@for="XmlArrayAttribute.Order"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public int Order { get { return _order; } set { if (value < 0) throw new ArgumentException(ResXml.XmlDisallowNegativeValues, "Order"); _order = value; } } } }