SPElementDefinition.GetRootAttrIsTrue Method
Returns the value of the specified root attribute as a Boolean value.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Function GetRootAttrIsTrue ( _
attrName As String _
) As Boolean
'Usage
Dim attrName As String
Dim returnValue As Boolean
returnValue = Me.GetRootAttrIsTrue(attrName)
protected bool GetRootAttrIsTrue(
string attrName
)
Parameters
attrName
Type: System.StringA string that specifies the name of the attribute.
Return Value
Type: System.Boolean
If an attribute is specified, returns true if the attribute value equals true, and returns false if the attribute value equals false. If an attribute is not specified, returns false.