Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Extensions::GetSchemaInfo Method (XAttribute^)

 

Gets the post-schema-validation infoset (PSVI) of a validated attribute.

Namespace:   System.Xml.Schema
Assembly:  System.Xml.Linq (in System.Xml.Linq.dll)

public:
[ExtensionAttribute]
static IXmlSchemaInfo^ GetSchemaInfo(
	XAttribute^ source
)

Parameters

source
Type: System.Xml.Linq::XAttribute^

An XAttribute that has been previously validated.

Return Value

Type: System.Xml.Schema::IXmlSchemaInfo^

A IXmlSchemaInfo that contains the post-schema-validation infoset for an XAttribute.

You can use the IXmlSchemaInfo returned by this method to determine certain characteristics of a validated attribute. For example, you can determine if the attribute came from a default attribute value in an XSD.

You use the SchemaAttribute property to get a partial validation type (XmlSchemaAttribute). You can use it to revalidate an attribute without validating an entire document.

For an example of this property, see Validate.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft