RoleManagerExtensions.Update<TRole> Method
Update an existing role
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Update(Of TRole As {Class, IRole}) ( _
manager As RoleManager(Of TRole), _
role As TRole _
) As IdentityResult
'Usage
Dim manager As RoleManager(Of TRole)
Dim role As TRole
Dim returnValue As IdentityResult
returnValue = manager.Update(role)
public static IdentityResult Update<TRole>(
this RoleManager<TRole> manager,
TRole role
)
where TRole : class, IRole
[ExtensionAttribute]
public:
generic<typename TRole>
where TRole : ref class, IRole
static IdentityResult^ Update(
RoleManager<TRole>^ manager,
TRole role
)
static member Update :
manager:RoleManager<'TRole> *
role:'TRole -> IdentityResult when 'TRole : not struct and IRole
JScript does not support generic types and methods.
Type Parameters
- TRole
Parameters
- manager
Type: Microsoft.AspNet.Identity.RoleManager<TRole>
- role
Type: TRole
Return Value
Type: Microsoft.AspNet.Identity.IdentityResult
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type RoleManager<TRole>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).