public:
[PermissionSet(SecurityAction::Demand, Name="FullTrust")]
void GetFileVersion()
{
// Get the file version for the notepad.
FileVersionInfo^ myFileVersionInfo = FileVersionInfo::GetVersionInfo( "%systemroot%\\Notepad.exe" );
// Print the file name and version number.
textBox1->Text = String::Concat( "File: " + myFileVersionInfo->FileDescription + "\n" +
"Version number: " + myFileVersionInfo->FileVersion );
}