Difference between revisions of "NET:InnerSpaceAPI.InnerSpace.BuildNumber"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
  public static void Main()
 
  public static void Main()
 
  {
 
  {
     uint BuildNumber = InnerSpace.GetBuildNumber();
+
     uint BuildNumber = InnerSpace.BuildNumber;
 
     if (BuildNumber == 0)
 
     if (BuildNumber == 0)
 
     {
 
     {
Line 32: Line 32:
 
     }   
 
     }   
 
  }
 
  }
 
  
 
== See Also ==
 
== See Also ==
 
* [[IS:.NET|Inner Space .NET]]
 
* [[IS:.NET|Inner Space .NET]]
 
* [[NET:Lavish.InnerSpace.dll|Lavish.InnerSpace.dll]]
 
* [[NET:Lavish.InnerSpace.dll|Lavish.InnerSpace.dll]]

Revision as of 17:37, 25 September 2008

Overview

Retrieves the Inner Space build number. This function can be used to determine if the application is executed by Inner Space, as it returns 0 if not.

Reference Library

Lavish.InnerSpace.dll

Fully Qualified Name

InnerSpaceAPI.InnerSpace.GetBuildNumber

Declaration

static public uint BuildNumber;

Parameters

None

Return Value

  • uint
The Inner Space build number. 0 if the application is not run through Inner Space.

Examples

C#

public static void Main()
{
    uint BuildNumber = InnerSpace.BuildNumber;
    if (BuildNumber == 0)
    {
        Console.WriteLine("This program must be run in Inner Space.");
        return;
    }   
}

See Also