¢'
Exibe os argumentos da linha de comando
¢For Each s As
String In My.Application.CommandLineArgs
¢ MessageBox.Show(s)
¢Next
¢'
Exibe os arquivos do Visual Studio em My Documents
¢For Each s As
String In My.Computer.FileSystem.GetFiles( _
¢
My.Computer.FileSystem.SpecialDirectories.MyDocuments, _
¢ False, "Visual Studio*.doc")
¢ MessageBox.Show(s)
¢Next
¢'
Testa as permissões do usuário
¢If
My.User.IsInRole( "Administrators") Then
¢ MessageBox.Show( "Hello Administrator
" + My.User.Identity.Name)
¢End If
¢'
Chama um método do Web Service
¢MessageBox.Show(
My.WebServices.DemoService.HelloWorld())