a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
691 lines
29 KiB
XML
691 lines
29 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Type Name="XmlAttributeAttribute" FullName="System.Xml.Serialization.XmlAttributeAttribute">
|
|
<TypeSignature Maintainer="auto" Language="C#" Value="public class XmlAttributeAttribute : Attribute" />
|
|
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit XmlAttributeAttribute extends System.Attribute" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>System.Xml</AssemblyName>
|
|
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ThreadSafetyStatement>To be added</ThreadSafetyStatement>
|
|
<Base>
|
|
<BaseTypeName>System.Attribute</BaseTypeName>
|
|
</Base>
|
|
<Interfaces />
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.ReturnValue | System.AttributeTargets.All)</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>The <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> belongs to a family of attributes that controls how the <see cref="T:System.Xml.Serialization.XmlSerializer" /> serializes, or deserializes, an object. For a complete list of similar attributes, see <format type="text/html"><a href="414b820f-a696-4206-b576-2711d85490c7">Attributes That Control XML Serialization</a></format>.</para>
|
|
<para>When applied to a public field or property, the <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> informs the <see cref="T:System.Xml.Serialization.XmlSerializer" /> to serialize the member as an XML attribute. By default, the <see cref="T:System.Xml.Serialization.XmlSerializer" /> serializes public fields and properties as XML elements.</para>
|
|
<para>You can assign the <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> only to public fields or public properties that return a value (or array of values) that can be mapped to one of the XML Schema definition language (XSD) simple types (including all built-in datatypes derived from the XSD anySimpleType type). The possible types include any that can be mapped to the XSD simple types, including <see cref="T:System.Guid" />, <see cref="T:System.Char" />, and enumerations. See the <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.DataType" /> property for a list of XSD types and how they are mapped to.NET data types.</para>
|
|
<para>There are two special attributes that can be set with the <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> : the xml:lang (specifies language) and xml:space (specifies how to handle white space) attributes. These attributes are intended to convey information that is relevant only to an application processing the XML. Examples of setting these are shown in the following code.</para>
|
|
<code>[XmlAttribute("xml:lang")]
|
|
public string Lang;
|
|
// Set this to 'default' or 'preserve'.
|
|
[XmlAttribute("space",
|
|
Namespace = "http://www.w3.org/XML/1998/namespace")]
|
|
public string Space
|
|
[Visual Basic]
|
|
<XmlAttribute("xml:lang")> _
|
|
Public Lang As String
|
|
' Set this to 'default' or 'preserve'.
|
|
<XmlAttribute("space", _
|
|
Namespace:= "http://www.w3.org/XML/1998/namespace")> _
|
|
Public Space As String</code>
|
|
<para>For more information about using attributes, see <format type="text/html"><a href="30386922-1e00-4602-9ebf-526b271a8b87">Extending Metadata Using Attributes</a></format>.</para>
|
|
<block subset="none" type="note">
|
|
<para>You can use the word XmlAttribute in your code instead of the longer <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" />.</para>
|
|
</block>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Specifies that the <see cref="T:System.Xml.Serialization.XmlSerializer" /> must serialize the class member as an XML attribute.</para>
|
|
</summary>
|
|
</Docs>
|
|
<Members>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public XmlAttributeAttribute ();" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
|
|
<MemberType>Constructor</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue />
|
|
<Parameters />
|
|
<Docs>
|
|
<remarks>To be added</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Initializes a new instance of the <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> class.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public XmlAttributeAttribute (string attributeName);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string attributeName) cil managed" />
|
|
<MemberType>Constructor</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue />
|
|
<Parameters>
|
|
<Parameter Name="attributeName" Type="System.String" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>To be added</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Initializes a new instance of the <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> class and specifies the name of the generated XML attribute.</para>
|
|
</summary>
|
|
<param name="attributeName">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The name of the XML attribute that the <see cref="T:System.Xml.Serialization.XmlSerializer" /> generates. </param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public XmlAttributeAttribute (Type type);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Type type) cil managed" />
|
|
<MemberType>Constructor</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue />
|
|
<Parameters>
|
|
<Parameter Name="type" Type="System.Type" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>To be added</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Initializes a new instance of the <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> class.</para>
|
|
</summary>
|
|
<param name="type">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Type" /> used to store the attribute. </param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public XmlAttributeAttribute (string attributeName, Type type);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string attributeName, class System.Type type) cil managed" />
|
|
<MemberType>Constructor</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue />
|
|
<Parameters>
|
|
<Parameter Name="attributeName" Type="System.String" />
|
|
<Parameter Name="type" Type="System.Type" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>To be added</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Initializes a new instance of the <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> class.</para>
|
|
</summary>
|
|
<param name="attributeName">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The name of the XML attribute that is generated. </param>
|
|
<param name="type">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Type" /> used to store the attribute. </param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="AttributeName">
|
|
<MemberSignature Language="C#" Value="public string AttributeName { get; set; }" />
|
|
<MemberSignature Language="ILAsm" Value=".property instance string AttributeName" />
|
|
<MemberType>Property</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<value>To be added: an object of type 'string'</value>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Use the <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.AttributeName" /> property to specify an XML attribute name when the default value cannot be used. For example, if the XML attribute name is invalid as a member identifier, you can use a valid name for the identifier while setting the <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.AttributeName" /> to an invalid name.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets or sets the name of the XML attribute.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="DataType">
|
|
<MemberSignature Language="C#" Value="public string DataType { get; set; }" />
|
|
<MemberSignature Language="ILAsm" Value=".property instance string DataType" />
|
|
<MemberType>Property</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<value>To be added: an object of type 'string'</value>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>The following table lists the XSD simple data types with their.NET equivalents.</para>
|
|
<para>For the XSD base64Binary and hexBinary data types, use an array of <see cref="T:System.Byte" /> structures, and apply a <see cref="T:System.Xml.Serialization.XmlArrayItemAttribute" /> with the <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.DataType" /> property set to "base64Binary" or "hexBinary", as appropriate. For the XSD time and date data types, use the <see cref="T:System.DateTime" /> type and apply the <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> with the <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.DataType" /> set to "date" or "time".</para>
|
|
<para>For every XSD type that is mapped to a string, apply the <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> with its <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.DataType" /> property set to the XSD type. However, this does not change the serialization format, only the schema for the member.</para>
|
|
<block subset="none" type="note">
|
|
<para>The property is case-sensitive, so you must set it exactly to one of the XSD data types.</para>
|
|
</block>
|
|
<block subset="none" type="note">
|
|
<para>Passing binary data as an XML element is more efficient than passing it as an XML attribute.</para>
|
|
</block>
|
|
<para>For more information about XML data types, see the World Wide Web Consortium (www.w3.org) document named "XML Schema Part 2: Datatypes".</para>
|
|
<list type="table">
|
|
<listheader>
|
|
<item>
|
|
<term>
|
|
<para>XSD data type </para>
|
|
</term>
|
|
<description>
|
|
<para>.NET data type </para>
|
|
</description>
|
|
</item>
|
|
</listheader>
|
|
<item>
|
|
<term>
|
|
<para>anyURI </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>base64Binary </para>
|
|
</term>
|
|
<description>
|
|
<para>Array of <see cref="T:System.Byte" /> objects </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>boolean </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Boolean" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>byte </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.SByte" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>date </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.DateTime" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>dateTime </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.DateTime" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>decimal </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Decimal" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>double </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Double" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>ENTITY </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>ENTITIES </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>float </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Single" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>gDay </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>gMonth </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>gMonthDay </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>gYear </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>gYearMonth </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>hexBinary </para>
|
|
</term>
|
|
<description>
|
|
<para>Array of <see cref="T:System.Byte" /> objects </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>ID </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>IDREF </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>IDREFS </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>int </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Int32" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>integer </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>language </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>long </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Int64" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>Name </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>NCName </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>negativeInteger </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>NMTOKEN </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>NMTOKENS </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>normalizedString </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>nonNegativeInteger </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>nonPositiveInteger </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>NOTATION </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>positiveInteger </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>QName </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Xml.XmlQualifiedName" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>duration </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>string </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>short </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Int16" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>time </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.DateTime" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>token </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.String" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>unsignedByte </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Byte" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>unsignedInt </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.UInt32" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>unsignedLong </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.UInt64" /> </para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>unsignedShort </para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.UInt16" /> </para>
|
|
</description>
|
|
</item>
|
|
</list>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets or sets the XSD data type of the XML attribute generated by the <see cref="T:System.Xml.Serialization.XmlSerializer" />.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Form">
|
|
<MemberSignature Language="C#" Value="public System.Xml.Schema.XmlSchemaForm Form { get; set; }" />
|
|
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Xml.Schema.XmlSchemaForm Form" />
|
|
<MemberType>Property</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Xml.Schema.XmlSchemaForm</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<value>To be added: an object of type 'System.Xml.Schema.XmlSchemaForm'</value>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>The <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.Form" /> property determines whether an XML element is qualified or unqualified. The <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.Form" /> property conforms to the 1999 http://www.w3.org specification <paramref name="Namespaces in XML" />.</para>
|
|
<para>If the <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.Namespace" /> property is set to any value, attempting to set the <see cref="P:System.Xml.Serialization.XmlElementAttribute.Form" /> property to XmlSchemaForm.Unqualified throws an exception.</para>
|
|
<para>The default setting, XmlSchemaForm.None, instructs the <see cref="T:System.Xml.Serialization.XmlSerializer" /> to check the schema for the XML document to determine whether the namespace is qualified. If the schema does not specify a value for an individual element or attribute, the <see cref="T:System.Xml.Serialization.XmlSerializer" /> uses the elementFormDefault and attributeFormDefault values to determine whether an element or attribute is qualified. The following XML code shows a schema: </para>
|
|
<code> <schema elementFormDefault="qualified"
|
|
attributeFormDefault="unqualified"... >
|
|
<element name="Name"/>
|
|
<attribute name="Number"/>
|
|
</schema></code>
|
|
<para>When the <see cref="T:System.Xml.Serialization.XmlSerializer" /> reads the schema, the <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.Form" /> value for both the Name and Number is XmlSchemaForm.None, but the Name element is qualified, while the Number element is unqualified.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets or sets a value that indicates whether the XML attribute name generated by the <see cref="T:System.Xml.Serialization.XmlSerializer" /> is qualified.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Namespace">
|
|
<MemberSignature Language="C#" Value="public string Namespace { get; set; }" />
|
|
<MemberSignature Language="ILAsm" Value=".property instance string Namespace" />
|
|
<MemberType>Property</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<value>To be added: an object of type 'string'</value>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>The <see cref="P:System.Xml.Serialization.XmlAttributeAttribute.Namespace" /> property conforms to the http://www.w3.org specification <paramref name="Namespaces in XML" />.</para>
|
|
<para>To create namespaces that are associated with prefixes, you must create an <see cref="T:System.Xml.Serialization.XmlSerializerNamespaces" /> object that contains the namespaces and prefixes used in the XML document. The namespace you set for each <see cref="T:System.Xml.Serialization.XmlAttributeAttribute" /> must match one of the namespaces in the <see cref="T:System.Xml.Serialization.XmlSerializerNamespaces" /> object. When the <see cref="T:System.Xml.Serialization.XmlSerializer" /> generates the XML code, it correctly prefixes each attribute name.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets or sets the XML namespace of the XML attribute.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Type">
|
|
<MemberSignature Language="C#" Value="public Type Type { get; set; }" />
|
|
<MemberSignature Language="ILAsm" Value=".property instance class System.Type Type" />
|
|
<MemberType>Property</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Type</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<value>To be added: an object of type 'System.Type'</value>
|
|
<remarks>To be added</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets or sets the complex type of the XML attribute.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
</Members>
|
|
</Type> |