Gets the attribute as Int32 value.

Namespace: Cudafy
Assembly: Cudafy (in Cudafy.dll) Version: 1.0.4106.20170

Syntax

C#
public static int GetAttributeInt32Value(
	this XElement element,
	string attributeName
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetAttributeInt32Value ( _
	element As XElement, _
	attributeName As String _
) As Integer
Visual C++
[ExtensionAttribute]
public:
static int GetAttributeInt32Value(
	XElement^ element, 
	String^ attributeName
)

Parameters

element
Type: System.Xml.Linq..::..XElement
The element.
attributeName
Type: System..::..String
Name of the attribute.

Return Value

Int32 value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Exceptions

ExceptionCondition
System.Xml..::..XmlExceptionAttribute not found.

See Also