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)

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