Share via


SPElementDefinition.GetRootAttrAsPermissions Method

Returns the value of the specified root attribute as a SharePoint Foundation permission.

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

Syntax

'Declaration
Protected Function GetRootAttrAsPermissions ( _
    attrName As String _
) As SPBasePermissions
'Usage
Dim attrName As String
Dim returnValue As SPBasePermissions

returnValue = Me.GetRootAttrAsPermissions(attrName)
protected SPBasePermissions GetRootAttrAsPermissions(
    string attrName
)

Parameters

  • attrName
    Type: System.String

    A string that specifies the name of the attribute.

Return Value

Type: Microsoft.SharePoint.SPBasePermissions
An SPBasePermissions value that indicates the permission.

See Also

Reference

SPElementDefinition Class

SPElementDefinition Members

Microsoft.SharePoint.Administration Namespace