I am reading a list of rights assigned from an exchange mailbox, these values are given through the AccessFlag property Which gives 20001 in hex, it seems that 2000 presents the permit and represents 1 full permit.
What I have to do, demonstrates what READ & amp; Complete permission set.
If you want to be in the form of a string, then you need an enum.
So if you have something like this:
[flag] enum permissions {Read = 0x20000, full = 0x00001}
Then you can cast your return value and use the toasting ()
string val = ((permissions) myValue) .ostring ();
And it will come out something like this:
Read, complete
Note that the flag's attribute This type is important for enum.
Comments
Post a Comment