Microsoft.Win32 Namespace
.NET Framework 4
The Microsoft.Win32 namespace provides two types of classes: those that handle events raised by the operating system and those that manipulate the system registry.
| Class | Description | |
|---|---|---|
|
CommonDialog | An abstract base class for displaying common Win32 dialogs. |
|
FileDialog | An abstract base class that encapsulates functionality that is common to file dialogs, including OpenFileDialog and SaveFileDialog. |
|
FileDialogCustomPlace | Represents an entry in a FileDialog custom place list. |
|
FileDialogCustomPlaces | Defines the known folders for custom places in file dialog boxes. |
|
IntranetZoneCredentialPolicy | Defines a credential policy to be used for resource requests that are made using WebRequest and its derived classes. |
|
OpenFileDialog | Represents a common dialog box that allows a user to specify a filename for one or more files to open. |
|
PowerModeChangedEventArgs | Provides data for the PowerModeChanged event. |
|
Registry | Provides RegistryKey objects that represent the root keys in the Windows registry, and static methods to access key/value pairs. |
|
RegistryKey | Represents a key-level node in the Windows registry. This class is a registry encapsulation. |
|
SaveFileDialog | Represents a common dialog that allows the user to specify a filename to save a file as. SaveFileDialog cannot be used by an application that is executing under partial trust. |
|
SessionEndedEventArgs | Provides data for the SessionEnded event. |
|
SessionEndingEventArgs | Provides data for the SessionEnding event. |
|
SessionSwitchEventArgs | Provides data for the SessionSwitch event. |
|
SystemEvents | Provides access to system event notifications. This class cannot be inherited. |
|
TimerElapsedEventArgs | Provides data for the TimerElapsed event. |
|
UserPreferenceChangedEventArgs | Provides data for the UserPreferenceChanged event. |
|
UserPreferenceChangingEventArgs | Provides data for the UserPreferenceChanging event. |
| Delegate | Description | |
|---|---|---|
|
PowerModeChangedEventHandler | Represents the method that will handle the PowerModeChanged event. |
|
SessionEndedEventHandler | Represents the method that will handle the SessionEnded event. |
|
SessionEndingEventHandler | Represents the method that will handle the SessionEnding event from the operating system. |
|
SessionSwitchEventHandler | Represents the method that will handle the SessionSwitch event. |
|
TimerElapsedEventHandler | Represents the method that will handle the TimerElapsed event. |
|
UserPreferenceChangedEventHandler | Represents the method that will handle the UserPreferenceChanged event. |
|
UserPreferenceChangingEventHandler | Represents the method that will handle the UserPreferenceChanging event. |
| Enumeration | Description | |
|---|---|---|
|
PowerModes | Defines identifiers for power mode events reported by the operating system. |
|
RegistryHive | Represents the possible values for a top-level node on a foreign machine. |
|
RegistryKeyPermissionCheck | Specifies whether security checks are performed when opening registry keys and accessing their name/value pairs. |
|
RegistryOptions | Specifies options to use when creating a registry key. |
|
RegistryValueKind | Specifies the data types to use when storing values in the registry, or identifies the data type of a value in the registry. |
|
RegistryValueOptions | Specifies optional behavior when retrieving name/value pairs from a registry key. |
|
RegistryView | Specifies which registry view to target on a 64-bit operating system. |
|
SessionEndReasons | Defines identifiers that represent how the current logon session is ending. |
|
SessionSwitchReason | Defines identifiers used to represent the type of a session switch event. |
|
UserPreferenceCategory | Defines identifiers that represent categories of user preferences. |