'Declaration<ExtensionAttribute()> Public Shared Function AddSecurityRoleIds( _ ByVal nameAndPasswordUserManager As INameAndPasswordUserManager, _ ByVal securityId As String, _ ByVal securityRoleIds As IEnumerable(Of String) _ ) As Boolean
'UsageDim nameAndPasswordUserManager As INameAndPasswordUserManager Dim securityId As String Dim securityRoleIds As IEnumerable(Of String) Dim value As Boolean value = INameAndPasswordUserManagerExtension.AddSecurityRoleIds(nameAndPasswordUserManager, securityId, securityRoleIds)
[Extension()] public static bool AddSecurityRoleIds( INameAndPasswordUserManager nameAndPasswordUserManager, string securityId, IEnumerable<string> securityRoleIds )
[Extension()] public: static bool AddSecurityRoleIds( INameAndPasswordUserManager^ nameAndPasswordUserManager, String^ securityId, IEnumerable<String^>^ securityRoleIds )
Parameters
- nameAndPasswordUserManager
- The user manager.
The value of this parameter cannot be
null(Nothingin Visual Basic). - securityId
- The security ID of the user.
The value of this parameter cannot be
null(Nothingin Visual Basic). - securityRoleIds
- The security role IDs to add.
The value of this parameter cannot be
null(Nothingin Visual Basic).The individual elements of the parameter value cannot be
null(Nothingin Visual Basic).
Return Value
true if all security role IDs were added successfully; otherwise, false.