Share via


RoleDefinitionCollection.GetByType method

Returns the role definition with the specified role type from the collection.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Function GetByType ( _
    roleType As RoleType _
) As RoleDefinition
'Usage
Dim instance As RoleDefinitionCollection
Dim roleType As RoleType
Dim returnValue As RoleDefinition

returnValue = instance.GetByType(roleType)
public RoleDefinition GetByType(
    RoleType roleType
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.RoleDefinition
Returns a RoleDefinition instance with the specified role type.

See also

Reference

RoleDefinitionCollection class

RoleDefinitionCollection members

Microsoft.SharePoint.Client namespace