Hello, it's so simple... Some cases we need the admin's right.
Code:
Function VerifyPrivilegio() As Boolean
If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) Then
Return True
Else
Return False
End If
End Function
Originally Posted by dllbaseII
Hello, it's so simple... Some cases we need the admin's right.
Code:
Function VerifyPrivilegio() As Boolean
If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) Then
Return True
Else
Return False
End If
End Function
Why to make a function for another function?
The function IsInRole already returns a boolean value...