Click or drag to resize
ExtensionMethodsGetMandatoryAttribute Method
Gets the mandatory attribute. if it's not found, an XmlException is thrown

Namespace:  SD.LLBLGen.Pro.Core.Xml
Assembly:  SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.2.0.0 (5.2.17.0403)
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