UtilEnvironmentPath Class

Contains Windows PATH and PATHEXT environment variables related utilities.

Definition

Namespace: DevCase.Core.Windows.Registry
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class UtilEnvironmentPath
Inheritance
Object    UtilEnvironmentPath

Properties

DefaultPathExt Gets the default data of the PATHEXt registry value.
DefaultPathWin32 Gets the default data of the PATH registry value for a 32-Bit Windows.
DefaultPathWin64 Gets the default data of the PATH registry value for a 64-Bit Windows.
EnvironmentPathCurrentUser Gets the registry path of the Environment subkey for the current user.
EnvironmentPathMachine Gets the registry path of the Environment subkey for all users.
PathData Gets the data of the PATH registry value.
PathExtData Gets the data of the PATHEXT registry value.

Methods

AddDirectory Adds a directory into the PATH registry value.
AddExtension Adds a file extension into the PATHEXT registry value.
ContainsDirectory Determines whether the PATH registry value contains the specified directory.
ContainsExtension Determines whether the PATHEXT registry value contains the specified file extension.
CreatePath Creates an empty PATH value in the registry.

Optionally fills the value with the specified data.

CreatePathExt Creates an empty PATHEXT value in the registry.

Optionally fills the value with the specified data.

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Export Exports the PATH and PATHEXT values to a target registry file.
GetDefaultPathData Gets the default data of the PATH registry value.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetPathData Gets the data of the PATH registry value.
GetPathExtData Gets data of the data of the PATHEXT registry value.
GetType Gets the Type of the current instance.
(Inherited from Object)
PathExists Determines whether the PATH value exists in the registry.
PathExtExists Determines whether the PATHEXT value exists on the registry of the specified user.
RemoveDirectory(RegistryScope, Int32) Removes a directory from the PATH registry value.
RemoveDirectory(RegistryScope, String) Removes a directory from the PATH registry value.
RemoveExtension(RegistryScope, Int32) Removes a file extension from the PATHEXT registry value of the specified user.
RemoveExtension(RegistryScope, String) Removes a file extension from the PATHEXT registry value of the specified user.
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

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)

See Also