public class Environment extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Environment
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Environment
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Environment() |
Environment(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Environment |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Environment, a cast assert is made to check if types are compatible. |
static void |
Exit(int exitCode)
Invokes the .NET member Exit.
|
static java.lang.String |
ExpandEnvironmentVariables(java.lang.String name)
Invokes the .NET member ExpandEnvironmentVariables.
|
static void |
FailFast(java.lang.String message)
Invokes the .NET member FailFast.
|
static void |
FailFast(java.lang.String message,
NetException exception)
Invokes the .NET member FailFast.
|
static java.lang.String |
getCommandLine()
Gets the value of the .NET property CommandLine.
|
static java.lang.String[] |
GetCommandLineArgs()
Invokes the .NET member GetCommandLineArgs.
|
static java.lang.String |
getCurrentDirectory()
Gets the value of the .NET property CurrentDirectory.
|
static int |
getCurrentManagedThreadId()
Gets the value of the .NET property CurrentManagedThreadId.
|
static java.lang.String |
GetEnvironmentVariable(java.lang.String variable)
Invokes the .NET member GetEnvironmentVariable.
|
static java.lang.String |
GetEnvironmentVariable(java.lang.String variable,
EnvironmentVariableTarget target)
Invokes the .NET member GetEnvironmentVariable.
|
static IDictionary |
GetEnvironmentVariables()
Invokes the .NET member GetEnvironmentVariables.
|
static IDictionary |
GetEnvironmentVariables(EnvironmentVariableTarget target)
Invokes the .NET member GetEnvironmentVariables.
|
static int |
getExitCode()
Gets the value of the .NET property ExitCode.
|
static boolean |
getHasShutdownStarted()
Gets the value of the .NET property HasShutdownStarted.
|
static boolean |
getIs64BitOperatingSystem()
Gets the value of the .NET property Is64BitOperatingSystem.
|
static boolean |
getIs64BitProcess()
Gets the value of the .NET property Is64BitProcess.
|
static boolean |
getIsPrivilegedProcess()
Gets the value of the .NET property IsPrivilegedProcess.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
static java.lang.String[] |
GetLogicalDrives()
Invokes the .NET member GetLogicalDrives.
|
static java.lang.String |
getMachineName()
Gets the value of the .NET property MachineName.
|
static java.lang.String |
getNewLine()
Gets the value of the .NET property NewLine.
|
static OperatingSystem |
getOSVersion()
Gets the value of the .NET property OSVersion.
|
static int |
getProcessId()
Gets the value of the .NET property ProcessId.
|
static int |
getProcessorCount()
Gets the value of the .NET property ProcessorCount.
|
static java.lang.String |
getProcessPath()
Gets the value of the .NET property ProcessPath.
|
static java.lang.String |
getStackTrace()
Gets the value of the .NET property StackTrace.
|
static java.lang.String |
getSystemDirectory()
Gets the value of the .NET property SystemDirectory.
|
static int |
getSystemPageSize()
Gets the value of the .NET property SystemPageSize.
|
static int |
getTickCount()
Gets the value of the .NET property TickCount.
|
static long |
getTickCount64()
Gets the value of the .NET property TickCount64.
|
static java.lang.String |
getUserDomainName()
Gets the value of the .NET property UserDomainName.
|
static boolean |
getUserInteractive()
Gets the value of the .NET property UserInteractive.
|
static java.lang.String |
getUserName()
Gets the value of the .NET property UserName.
|
static Version |
getVersion()
Gets the value of the .NET property Version.
|
static long |
getWorkingSet()
Gets the value of the .NET property WorkingSet.
|
static void |
setCurrentDirectory(java.lang.String CurrentDirectory)
Sets the value of the .NET property CurrentDirectory.
|
static void |
SetEnvironmentVariable(java.lang.String variable,
java.lang.String value)
Invokes the .NET member SetEnvironmentVariable.
|
static void |
SetEnvironmentVariable(java.lang.String variable,
java.lang.String value,
EnvironmentVariableTarget target)
Invokes the .NET member SetEnvironmentVariable.
|
static void |
setExitCode(int ExitCode)
Sets the value of the .NET property ExitCode.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Environment()
throws java.lang.Throwable
java.lang.Throwablepublic Environment(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static Environment cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Environment, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedEnvironment instancejava.lang.Throwable - in case of error during cast operationpublic static void Exit(int exitCode)
throws java.lang.Throwable
exitCode - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static java.lang.String ExpandEnvironmentVariables(java.lang.String name)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException
name - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic static void FailFast(java.lang.String message)
throws java.lang.Throwable
message - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static void FailFast(java.lang.String message,
NetException exception)
throws java.lang.Throwable
message - the argument of type java.lang.Stringexception - the argument of type NetExceptionjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static java.lang.String getCommandLine()
throws java.lang.Throwable,
InvalidOperationException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
ApplicationException
java.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itApplicationException - if the .NET member raises itpublic static java.lang.String[] GetCommandLineArgs()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentNullException,
PlatformNotSupportedException,
FormatException,
IndexOutOfRangeException,
RankException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static java.lang.String getCurrentDirectory()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException,
PlatformNotSupportedException,
CultureNotFoundException,
ExternalException,
ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static int getCurrentManagedThreadId()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static java.lang.String GetEnvironmentVariable(java.lang.String variable)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException
variable - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static java.lang.String GetEnvironmentVariable(java.lang.String variable,
EnvironmentVariableTarget target)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException,
ObjectDisposedException,
SecurityException,
IOException,
ArrayTypeMismatchException,
IndexOutOfRangeException
variable - the argument of type java.lang.Stringtarget - the argument of type EnvironmentVariableTargetjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSecurityException - if the .NET member raises itIOException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static IDictionary GetEnvironmentVariables() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, OutOfMemoryException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic static IDictionary GetEnvironmentVariables(EnvironmentVariableTarget target) throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, IOException, FormatException, RankException, ArrayTypeMismatchException
target - the argument of type EnvironmentVariableTargetjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSecurityException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itFormatException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static int getExitCode()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean getHasShutdownStarted()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean getIs64BitOperatingSystem()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean getIs64BitProcess()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean getIsPrivilegedProcess()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException,
ObjectDisposedException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic static java.lang.String[] GetLogicalDrives()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic static java.lang.String getMachineName()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic static java.lang.String getNewLine()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static OperatingSystem getOSVersion() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic static int getProcessId()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static int getProcessorCount()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static java.lang.String getProcessPath()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException,
PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic static java.lang.String getStackTrace()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentNullException,
TypeLoadException,
ArgumentException,
NotSupportedException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException,
CultureNotFoundException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
OutOfMemoryException,
FormatException,
RankException,
IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itTypeLoadException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static java.lang.String getSystemDirectory()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic static int getSystemPageSize()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static int getTickCount()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static long getTickCount64()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static java.lang.String getUserDomainName()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic static boolean getUserInteractive()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static java.lang.String getUserName()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static Version getVersion() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, AmbiguousMatchException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, OverflowException, ArgumentOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itAmbiguousMatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOverflowException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic static long getWorkingSet()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static void setCurrentDirectory(java.lang.String CurrentDirectory)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException,
OutOfMemoryException
CurrentDirectory - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic static void SetEnvironmentVariable(java.lang.String variable,
java.lang.String value)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
FormatException,
OutOfMemoryException
variable - the argument of type java.lang.Stringvalue - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic static void SetEnvironmentVariable(java.lang.String variable,
java.lang.String value,
EnvironmentVariableTarget target)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
FormatException,
OutOfMemoryException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException,
ObjectDisposedException,
SecurityException,
UnauthorizedAccessException,
IOException
variable - the argument of type java.lang.Stringvalue - the argument of type java.lang.Stringtarget - the argument of type EnvironmentVariableTargetjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSecurityException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itpublic static void setExitCode(int ExitCode)
throws java.lang.Throwable
ExitCode - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying object