How to delete asp.net profile property values?
-
07-06-2021 - |
Question
I cerated a asp.net user profile with 1 property List<string> Password
it contain 24 passwords , now i want to delete 4 passwords from this property values, how can i do this?
La solution
To remove a range
Password.RemoveRange(index,count);
To remove a known index
Password.RemoveAt(index);
index is always zero based. All list of methods
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow