Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
175 lines (165 sloc) 8.75 KB
<Type Name="ValidationEventArgs" FullName="System.Xml.Schema.ValidationEventArgs">
<TypeSignature Language="C#" Value="public class ValidationEventArgs : EventArgs" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ValidationEventArgs extends System.EventArgs" />
<TypeSignature Language="DocId" Value="T:System.Xml.Schema.ValidationEventArgs" />
<TypeSignature Language="VB.NET" Value="Public Class ValidationEventArgs&#xA;Inherits EventArgs" />
<TypeSignature Language="C++ CLI" Value="public ref class ValidationEventArgs : EventArgs" />
<TypeSignature Language="F#" Value="type ValidationEventArgs = class&#xA; inherit EventArgs" />
<AssemblyInfo>
<AssemblyName>System.Xml</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Xml.ReaderWriter</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.EventArgs</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Returns detailed information related to the <see langword="ValidationEventHandler" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
For an example, see the <xref:System.Xml.Schema.XmlSchemaCollection.Add%2A> method for the <xref:System.Xml.Schema.XmlSchemaCollection> class.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="Exception">
<MemberSignature Language="C#" Value="public System.Xml.Schema.XmlSchemaException Exception { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Xml.Schema.XmlSchemaException Exception" />
<MemberSignature Language="DocId" Value="P:System.Xml.Schema.ValidationEventArgs.Exception" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Exception As XmlSchemaException" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Xml::Schema::XmlSchemaException ^ Exception { System::Xml::Schema::XmlSchemaException ^ get(); };" />
<MemberSignature Language="F#" Value="member this.Exception : System.Xml.Schema.XmlSchemaException" Usage="System.Xml.Schema.ValidationEventArgs.Exception" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Xml</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Xml.ReaderWriter</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Xml.Schema.XmlSchemaException</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the <see cref="T:System.Xml.Schema.XmlSchemaException" /> associated with the validation event.</summary>
<value>The <see langword="XmlSchemaException" /> associated with the validation event.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Message">
<MemberSignature Language="C#" Value="public string Message { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Message" />
<MemberSignature Language="DocId" Value="P:System.Xml.Schema.ValidationEventArgs.Message" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Message As String" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::String ^ Message { System::String ^ get(); };" />
<MemberSignature Language="F#" Value="member this.Message : string" Usage="System.Xml.Schema.ValidationEventArgs.Message" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Xml</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Xml.ReaderWriter</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the text description corresponding to the validation event.</summary>
<value>The text description.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Severity">
<MemberSignature Language="C#" Value="public System.Xml.Schema.XmlSeverityType Severity { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Xml.Schema.XmlSeverityType Severity" />
<MemberSignature Language="DocId" Value="P:System.Xml.Schema.ValidationEventArgs.Severity" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Severity As XmlSeverityType" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Xml::Schema::XmlSeverityType Severity { System::Xml::Schema::XmlSeverityType get(); };" />
<MemberSignature Language="F#" Value="member this.Severity : System.Xml.Schema.XmlSeverityType" Usage="System.Xml.Schema.ValidationEventArgs.Severity" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Xml</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Xml.ReaderWriter</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Xml.Schema.XmlSeverityType</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the severity of the validation event.</summary>
<value>An <see cref="T:System.Xml.Schema.XmlSeverityType" /> value representing the severity of the validation event.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example validates an XML file and generates the appropriate error or warning.
[!code-cpp[ValidationEventArgs.Severity#1](~/samples/snippets/cpp/VS_Snippets_Data/ValidationEventArgs.Severity/CPP/severity.cpp#1)]
[!code-csharp[ValidationEventArgs.Severity#1](~/samples/snippets/csharp/VS_Snippets_Data/ValidationEventArgs.Severity/CS/severity.cs#1)]
[!code-vb[ValidationEventArgs.Severity#1](~/samples/snippets/visualbasic/VS_Snippets_Data/ValidationEventArgs.Severity/VB/severity.vb#1)]
The preceding example uses the following input files.
`store.xml`
[!code-xml[ValidationEventArgs.Severity#2](~/samples/snippets/xml/VS_Snippets_Data/ValidationEventArgs.Severity/XML/store.xml#2)]
`books.xsd`
[!code-xml[ValidationEventArgs.Severity#3](~/samples/snippets/xml/VS_Snippets_Data/ValidationEventArgs.Severity/XML/books.xsd#3)]
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.