Microsoft.Win32 命名空間

Microsoft.Win32 命名空間提供兩個類型的類別:處理由作業系統引發之事件的類別和操作系統登錄的類別。 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.

類別

CommonDialog

用來顯示通用 Win32 對話方塊的抽象基底類別。An abstract base class for displaying common Win32 dialogs.

FileDialog

封裝檔案對話方塊 (包括 OpenFileDialogSaveFileDialog) 通用功能的抽象基底類別。An abstract base class that encapsulates functionality that is common to file dialogs, including OpenFileDialog and SaveFileDialog.

FileDialogCustomPlace

表示 FileDialog 自訂位置清單中的項目。Represents an entry in a FileDialog custom place list.

FileDialogCustomPlaces

定義檔案對話方塊中自訂位置的已知資料夾。Defines the known folders for custom places in file dialog boxes.

IntranetZoneCredentialPolicy

對於使用 WebRequest 與其衍生類別 (Derived Class) 所產生的資源要求,定義其使用的認證原則。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

提供 PowerModeChanged 事件的資料。Provides data for the PowerModeChanged event.

Registry

提供用於表示 Windows 登錄中根目錄機碼的 RegistryKey 物件,以及用於存取機碼/值組的 static 方法。Provides RegistryKey objects that represent the root keys in the Windows registry, and static methods to access key/value pairs.

RegistryAclExtensions
RegistryKey

表示 Windows 登錄中的機碼層級節點。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. 在部分信任下執行的應用程式不能使用 SaveFileDialogSaveFileDialog cannot be used by an application that is executing under partial trust.

SessionEndedEventArgs

提供 SessionEnded 事件的資料。Provides data for the SessionEnded event.

SessionEndingEventArgs

提供 SessionEnding 事件的資料。Provides data for the SessionEnding event.

SessionSwitchEventArgs

提供 SessionSwitch 事件的資料。Provides data for the SessionSwitch event.

SystemEvents

提供存取系統事件告知的功能。Provides access to system event notifications. 這個類別無法被繼承。This class cannot be inherited.

TimerElapsedEventArgs

提供 TimerElapsed 事件的資料。Provides data for the TimerElapsed event.

UserPreferenceChangedEventArgs

提供 UserPreferenceChanged 事件的資料。Provides data for the UserPreferenceChanged event.

UserPreferenceChangingEventArgs

提供 UserPreferenceChanging 事件的資料。Provides data for the UserPreferenceChanging event.

列舉

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

指定在 64 位元作業系統上以哪個登錄檢視為目標。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.

委派

PowerModeChangedEventHandler

代表將處理 PowerModeChanged 事件的方法。Represents the method that will handle the PowerModeChanged event.

SessionEndedEventHandler

代表將處理 SessionEnded 事件的方法。Represents the method that will handle the SessionEnded event.

SessionEndingEventHandler

表示處理來自作業系統的 SessionEnding 事件的方法。Represents the method that will handle the SessionEnding event from the operating system.

SessionSwitchEventHandler

代表將處理 SessionSwitch 事件的方法。Represents the method that will handle the SessionSwitch event.

TimerElapsedEventHandler

代表將處理 TimerElapsed 事件的方法。Represents the method that will handle the TimerElapsed event.

UserPreferenceChangedEventHandler

代表將處理 UserPreferenceChanged 事件的方法。Represents the method that will handle the UserPreferenceChanged event.

UserPreferenceChangingEventHandler

代表將處理 UserPreferenceChanging 事件的方法。Represents the method that will handle the UserPreferenceChanging event.