RoleManagerExtensions.Update<TRole, TKey> Method (RoleManager<TRole, TKey>, TRole)
Updates an existing role.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
public static IdentityResult Update<TRole, TKey>(
this RoleManager<TRole, TKey> manager,
TRole role
)
where TRole : class, IRole<TKey>
where TKey : object, IEquatable<TKey>
public:
generic<typename TRole, typename TKey>
where TRole : ref class, IRole<TKey>
where TKey : Object, IEquatable<TKey>
[ExtensionAttribute]
static IdentityResult^ Update(
RoleManager<TRole, TKey>^ manager,
TRole role
)
static member Update<'TRole, 'TKey when 'TRole : not struct and IRole<'TKey> when 'TKey : Object and IEquatable<'TKey>> :
manager:RoleManager<'TRole, 'TKey> *
role:'TRole -> IdentityResult
<ExtensionAttribute>
Public Shared Function Update(Of TRole As { Class, IRole(Of TKey) }, TKey As { Object, IEquatable(Of TKey) }) (
manager As RoleManager(Of TRole, TKey),
role As TRole
) As IdentityResult
Parameters
manager
Type: Microsoft.AspNet.Identity.RoleManager<TRole, TKey>The role manager.
role
Type: TRoleThe role to update.
Return Value
Type: Microsoft.AspNet.Identity.IdentityResult
The result of the operation.
Type Parameters
- TRole
The type of the role.
- TKey
The type of the key.
See Also
RoleManagerExtensions Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top