1) DotNet_StartDomain.au3 556 B

12345678910111213141516
  1. #include "..\..\Includes\DotNetUtils.au3"
  2. Opt( "MustDeclareVars", 1 )
  3. Example()
  4. Func Example()
  5. Local $oMyDomain
  6. ; Creates and starts a user domain to run .NET code
  7. ; A default domain is automatically created by the other functions in DotNet.au3
  8. ; You only need to call DotNet_StartDomain() if you want to specify a base directory for the domain
  9. DotNet_StartDomain( $oMyDomain )
  10. If Not IsObj( $oMyDomain ) Then Return ConsoleWrite( "DotNet_StartDomain ERR" & @CRLF )
  11. ConsoleWrite( "DotNet_StartDomain OK" & @CRLF )
  12. DotNet_ListDomainsEx()
  13. EndFunc