Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Available in Sandboxed Solutions: No
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.