It was used in <RequireAuthorization(Permission:="Manage Users")>
. I know its an assignment operator but whats the difference with it from the '=' ?
Asked
Active
Viewed 73 times
1

mark vanzuela
- 1,373
- 4
- 23
- 37
-
1Already answered here: http://stackoverflow.com/questions/302486/what-is-the-operator-in-vb-net-or-what-is-it-good-for?rq=1 – jpw Nov 21 '13 at 10:26
2 Answers
4
It is a named argument (as separate to the default conventional of positional arguments):
- it makes it easy for the reader to see that that value represents
- it makes it easy for the writer to supply a value to the 17th optional parameter without needing to specify all the others (or include lots of commas, etc)

Marc Gravell
- 1,026,079
- 266
- 2,566
- 2,900
1
It's used to pass values for named parameters to a method, in this case the constructor of the RequireAuthorizationAttribute
.

David M
- 71,481
- 13
- 158
- 186