|
1 | | -<Type Name="XmlSchemaDatatype" FullName="System.Xml.Schema.XmlSchemaDatatype"> |
| 1 | +<Type Name="XmlSchemaDatatype" FullName="System.Xml.Schema.XmlSchemaDatatype"> |
2 | 2 | <TypeSignature Language="C#" Value="public abstract class XmlSchemaDatatype" /> |
3 | 3 | <TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit XmlSchemaDatatype extends System.Object" /> |
4 | 4 | <TypeSignature Language="DocId" Value="T:System.Xml.Schema.XmlSchemaDatatype" /> |
|
327 | 327 | <Parameter Name="nsmgr" Type="System.Xml.XmlNamespaceManager" /> |
328 | 328 | </Parameters> |
329 | 329 | <Docs> |
330 | | - <param name="s">To be added.</param> |
331 | | - <param name="nameTable">To be added.</param> |
332 | | - <param name="nsmgr">To be added.</param> |
333 | | - <summary>To be added.</summary> |
334 | | - <returns>To be added.</returns> |
335 | | - <remarks>To be added.</remarks> |
| 330 | + <param name="s">The string to validate against the simple type.</param> |
| 331 | + <param name="nameTable">The <see cref="T:System.Xml.XmlNameTable" /> to use for atomization while parsing the string if this <see cref="T:System.Xml.Schema.XmlSchemaDatatype" /> object represents the xs:NCName type.</param> |
| 332 | + <param name="nsmgr">The <see cref="T:System.Xml.XmlNamespaceManager" /> object to use while parsing the string if this <see cref="T:System.Xml.Schema.XmlSchemaDatatype" /> object represents the xs:QName type.</param> |
| 333 | + <summary>When overridden in a derived class, validates the specified string against a built-in or user-defined simple type.</summary> |
| 334 | + <returns>An <see cref="T:System.Object" /> that can be safely cast to the type that is returned by the <see cref="P:System.Xml.Schema.XmlSchemaDatatype.ValueType" /> property.</returns> |
| 335 | + <remarks> |
| 336 | + <format type="text/markdown"><![CDATA[ |
| 337 | +
|
| 338 | +## Remarks |
| 339 | +The <xref:System.Xml.Schema.XmlSchemaDatatype.ParseValue%2A> method validates the specified string against a built-in or user-defined simple type. For example, if this <xref:System.Xml.Schema.XmlSchemaDatatype> represents the type xs:date, then an instance of <xref:System.DateTime> is returned. |
| 340 | +
|
| 341 | +The following are the steps performed during the <xref:System.Xml.Schema.XmlSchemaDatatype.ParseValue%2A> method's validation process. |
| 342 | +
|
| 343 | +1. Convert the specified string to its corresponding Common Language Runtime (CLR) type. |
| 344 | +
|
| 345 | +2. Verify that the value does not violate any facets that are defined for the simple type. |
| 346 | +
|
| 347 | +The converted value is then returned as an <xref:System.Object> and can be cast safely to the type that is returned by the <xref:System.Xml.Schema.XmlSchemaDatatype.ValueType> property. |
| 348 | +
|
| 349 | +When the <xref:System.Xml.Schema.XmlSchemaDatatype> object represents a list type, the input string value is converted to a list of one or more objects. When the <xref:System.Xml.Schema.XmlSchemaDatatype> object represents a list type, an attempt is made to parse the input value as a member type of the union. If the parse attempt fails, then the conversion is attempted with the next member of the union until the parse is successful or there are no other member types to parse. If the parse is unsuccessful, an exception is thrown. |
| 350 | +
|
| 351 | +]]></format> |
| 352 | + </remarks> |
| 353 | + <exception cref="T:System.Xml.Schema.XmlSchemaValidationException">The input value is not a valid instance of this W3C XML Schema type.</exception> |
| 354 | + <exception cref="T:System.ArgumentNullException">The value to parse cannot be null (Nothing in Visual Basic).</exception> |
336 | 355 | </Docs> |
337 | 356 | </Member> |
338 | 357 | <Member MemberName="TokenizedType"> |
|
0 commit comments