Es sencillo, simplemente usa:
VB.NET:
-
If My.User.IsAuthenticated = False Then
-
'haz algo
-
Else
-
'haz algo
-
End If
Es sencillo, simplemente usa: