SPElementDefinition.GetRootAttrVal method
Returns the value of an attribute that is specified within the root element of the definition.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Function GetRootAttrVal ( _
attrName As String _
) As String
'Usage
Dim attrName As String
Dim returnValue As String
returnValue = Me.GetRootAttrVal(attrName)
protected string GetRootAttrVal(
string attrName
)
Parameters
attrName
Type: System.StringA string that specifies the name of the attribute.
Return value
Type: System.String
A string that contains the value of the attribute that is specified within the root element, or a null reference (Nothing in Visual Basic) if the attribute not exist.
Remarks
The GetRootAttrVal method provides a basic utility function for optionally specified attributes in an element definition.