Share via


SPElementDefinition.GetRootAttrAsInt32 Method

Returns the value of the specified root attribute as an integer.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Function GetRootAttrAsInt32 ( _
    attrName As String, _
    nDefault As Integer _
) As Integer
'Usage
Dim attrName As String
Dim nDefault As Integer
Dim returnValue As Integer

returnValue = Me.GetRootAttrAsInt32(attrName, _
    nDefault)
protected int GetRootAttrAsInt32(
    string attrName,
    int nDefault
)

Parameters

  • attrName
    Type: System.String

    A string that specifies the name of the attibute.

  • nDefault
    Type: System.Int32

    A 32-bit integer that specifies a default value.

Return Value

Type: System.Int32
A 32-bit integer that indicates the value of the specified root attribute.

See Also

Reference

SPElementDefinition Class

SPElementDefinition Members

Microsoft.SharePoint.Administration Namespace