Click or drag to resize

XmlExtensionMethodsGetMandatoryAttribute Method

Gets the mandatory attribute. if it's not found, an XmlException is thrown

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public static string GetMandatoryAttribute(
	this XmlReader reader,
	string attributeName
)

Parameters

reader
Type: System.XmlXmlReader
The reader.
attributeName
Type: SystemString
Name of the attribute.

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XmlReader. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also