我今天就來介紹其中一個方法吧!
~程式碼 VB~
Dim isAdmin As Boolean
isAdmin = My.User.IsInRole("administrators" )
If isAdmin Then
Label5.Text = Label5.Text & "具有管理員份"
Else
Label5.Text = Label5.Text & "不具管理員身份"
End If
沒有留言:
張貼留言