public sealed class UtilApplicationPublic NotInheritable Class UtilApplication
Dim instance As UtilApplicationpublic ref class UtilApplication sealed[<SealedAttribute>]
type UtilApplication = class endNo code example is currently available or this language may not be supported.| AssemblyGuid | Gets the Guid of the current application. |
| BrowserEmulationMode | Gets or sets the Internet Explorer browser emulation mode for the current application. |
| DirectoryPath | Gets the directory path where the current assembly is stored. |
| FileExtension | Gets the file extension of the current assembly. |
| Filename | Gets the filename, without extension, of the current assembly. |
| Fullpath | Gets the full path of the current assembly. |
| IsCurrentAssemblyInGAC | Gets a value indicating whether the current executing assembly is installed in GAC (Global Assembly Cache). |
| LoadedAssemblies | Gets the loaded assemblies of the current assembly. |
| ProcessArchitecture | Determines whether the architecture of the current process is 32 or 64 Bits. |
| ProcessErrorMode | Gets or sets a value that controls whether the system will handle the specified types of serious errors or whether the current process will handle them. |
| ProcessPriority | Gets or sets the overall priority category for the associated process. |
| ReferencedAssemblies | Gets the referenced assemblies of the current assembly. |
| SelfBytes | Gets the bytes of the local file that points to the running assembly. |
| ThreadErrorMode | Gets or sets a value that controls whether the system will handle the specified types of serious errors or whether the current process will handle them. |
| Threads | Gets the set of threads that are running in the current process. |
| AddRelativeAssemblyReferencePaths | Adds the specified directories in the private application's path, to look for referenced assemblies. |
| AppOpenWithRegister | Registers an application for OpenWith features through the HKEY_CLASSES_ROOT\Applications\ApplicationName.exe registry subkey. |
| AppOpenWithUnregister | Unregisters an application that has been registered for OpenWith features using the AppOpenWithRegister(AppOpenWithInfo) method. |
| AppShellExecuteRegister | Registers an application for ShellExecute features through HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths registry subkey. |
| AppShellExecuteUnregister | Unregisters an application that has been registered for ShellExecute features using the AppShellExecuteRegister(AppShellExecuteInfo) method. |
| ComputeSelfHashT | Computes a hash code for the main executable file of the running application. |
| CreateMutex(Boolean, String, Boolean) | Initializes a new instance of the Mutex class with a Boolean value that indicates whether the calling thread should have initial ownership of the Mutex, and a String that is the name of the mutex. |
| CreateMutex(Boolean, String, Boolean, Boolean) | Initializes a new instance of the Mutex class with a Boolean value that indicates whether the calling thread should have initial ownership of the Mutex, a String that is the name of the mutex, and a Boolean variable that, when the method returns, indicates whether the calling thread was granted initial ownership of the Mutex. |
| CreateMutex(Boolean, String, Boolean, Boolean, MutexSecurity) | Initializes a new instance of the Mutex class with a Boolean value that indicates whether the calling thread should have initial ownership of the Mutex, a String that is the name of the mutex, a Boolean variable that, when the method returns, indicates whether the calling thread was granted initial ownership of the Mutex, and the access control security to be applied to the Mutex. |
| DeleteSelfApplication | Deletes itself the application executable file. |
| DeleteSelfApplication(TimeSpan) | Deletes itself the application executable file after the specified time interval. |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetFirstRunFlag | Gets the first run flag registry. |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetIEBrowserEmulationMode(Process, RegistryScope) | Gets the Internet Explorer browser emulation mode for the specified process. |
| GetIEBrowserEmulationMode(String, RegistryScope) | Gets the Internet Explorer browser emulation mode for the specified process. |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| SetFirstRunFlag | Writes a registry value with name IsFirstRun under the HKCU\SOFTWARE\{Application Name}\ registry key to evaluate whether this is the first run of the current application in any next application runs. The flag is |
| SetIEBrowserEmulationMode(Process, RegistryScope, IEBrowserEmulationMode) | Sets the Internet Explorer browser emulation mode for the specified process. |
| SetIEBrowserEmulationMode(String, RegistryScope, IEBrowserEmulationMode) | Sets the Internet Explorer browser emulation mode for the specified process. |
| SetThreadPriority(ThreadPriority) | Sets the priority for the current thread. |
| SetThreadPriority(Int32, ThreadPriorityLevel) | Sets the priority for the target thread. |
| Sleep(Int32) | Blocks the current thread for the specified amount of time, in milliseconds. |
| Sleep(TimeSpan) | Blocks the current thread for the specified amount of time. |
| SleepRandom(Int32) | Blocks the current thread for a random amount of time, in milliseconds, between 1 and the specified maximum value. |
| SleepRandom(TimeSpan) | Blocks the current thread for a random amount of time, between 1 millisecond and the specified maximum values. |
| SleepRandom(Int32, Int32) | Blocks the current thread for a random amount of time, in milliseconds, between the specified minimum and maximum values. |
| SleepRandom(TimeSpan, TimeSpan) | Blocks the current thread for a random amount of time between the specified minimum and maximum values. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
| CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
| ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
| ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
| IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
| Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
| Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
| ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |