Gibt eine Referenz auf ein statisches .NET-Objekt zurück. Verschafft Zugriff auf .NET-Typen, die keine Instanzen haben und nur statische Mitglieder enthalten.
 
Signatur
| CLR.Static(strTypeNameCLR : String) -> object | 
 
Beispiel (JScript)
| // Get the value of a .NET Enum into a variablevar enumValStretch = CLR.Static( "System.Windows.Forms.ImageLayout" ).Stretch
 
 // Set the value of the Windows clipboard
 var clipboard = CLR.Static( "System.Windows.Clipboard" );
 clipboard.SetText( "HelloClipboard" );
 
 // Check the buttons pressed by the user on a dialog box
 if ( ShowForm( "FormName" ) == CLR.Static( "System.Windows.Forms.DialogResult" ).OK )
 alert( "ok" );
 else
 alert( "cancel" );
 |