RoleManager<TRole>.FindByIdAsync Method
Find a role by id
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
Public Overridable Function FindByIdAsync ( _
roleId As String _
) As Task(Of TRole)
'Usage
Dim instance As RoleManager
Dim roleId As String
Dim returnValue As Task(Of TRole)
returnValue = instance.FindByIdAsync(roleId)
public virtual Task<TRole> FindByIdAsync(
string roleId
)
public:
virtual Task<TRole>^ FindByIdAsync(
String^ roleId
)
abstract FindByIdAsync :
roleId:string -> Task<'TRole>
override FindByIdAsync :
roleId:string -> Task<'TRole>
public function FindByIdAsync(
roleId : String
) : Task<TRole>
Parameters
- roleId
Type: System.String
Return Value
Type: System.Threading.Tasks.Task<TRole>