RuntimeEnvironment Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides a collection of static methods that return information about the common language runtime environment.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

System.Object
  System.Runtime.InteropServices.RuntimeEnvironment

[<ComVisibleAttribute(true)>]
type RuntimeEnvironment = class end

NameDescription
System_CAPS_pubmethodRuntimeEnvironment()

Obsolete. Initializes a new instance of the RuntimeEnvironment class.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticSystemConfigurationFile

Gets the path to the system configuration file.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticFromGlobalAccessCache(Assembly)

Tests whether the specified assembly is loaded in the global assembly cache.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetRuntimeDirectory()

Returns the directory where the common language runtime is installed.

System_CAPS_pubmethodSystem_CAPS_staticGetRuntimeInterfaceAsIntPtr(Guid, Guid)

Returns the specified interface on the specified class.

System_CAPS_pubmethodSystem_CAPS_staticGetRuntimeInterfaceAsObject(Guid, Guid)

Returns an instance of a type that represents a COM object by a pointer to its IUnknown interface.

System_CAPS_pubmethodSystem_CAPS_staticGetSystemVersion()

Gets the version number of the common language runtime that is running the current process.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

This example shows how to call many of the methods defined by the RuntimeEnvironment class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: