| 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.3.0.0 (5.3.0)
Syntaxpublic static string GetMandatoryAttribute(
	this XmlReader reader,
	string attributeName
)
<ExtensionAttribute>
Public Shared Function GetMandatoryAttribute ( 
	reader As XmlReader,
	attributeName As String
) As String
Parameters
- reader
 - Type: System.XmlXmlReader
The reader. - attributeName
 - Type: SystemString
Name of the attribute. 
Return Value
Type: 
StringUsage 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