//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ namespace System.Web.Services.Configuration { using System; /// /// /// [To be supplied.] /// [AttributeUsage(AttributeTargets.Class)] public sealed class XmlFormatExtensionAttribute : Attribute { Type[] types; string name; string ns; /// /// /// [To be supplied.] /// public XmlFormatExtensionAttribute() { } /// public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1) : this(elementName, ns, new Type[] { extensionPoint1 }) { } /// public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2) : this(elementName, ns, new Type[] { extensionPoint1, extensionPoint2 }) { } /// public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3) : this(elementName, ns, new Type[] { extensionPoint1, extensionPoint2, extensionPoint3 }) { } /// public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3, Type extensionPoint4) : this(elementName, ns, new Type[] { extensionPoint1, extensionPoint2, extensionPoint3, extensionPoint4 }) { } /// /// /// [To be supplied.] /// public XmlFormatExtensionAttribute(string elementName, string ns, Type[] extensionPoints) { this.name = elementName; this.ns = ns; this.types = extensionPoints; } /// /// /// [To be supplied.] /// public Type[] ExtensionPoints { get { return types == null ? new Type[0] : types; } set { types = value; } } /// /// /// [To be supplied.] /// public string Namespace { get { return ns == null ? string.Empty : ns; } set { ns = value; } } /// /// /// [To be supplied.] /// public string ElementName { get { return name == null ? string.Empty : name; } set { name = value; } } } }