Sign in. United States English. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Windows PowerShell. Sign in to vote. Be sure to avoid destroying information created by other applications, because this can cause those applications to exhibit unexpected behavior, and can also have an adverse effect upon your own application.
This type implements the IDisposable interface. When you have finished using the type, you should dispose of it either directly or indirectly. To dispose of it indirectly, use a language construct such as using in C or Using in Visual Basic. Registry keys are the base unit of organization in the registry, and can be compared to folders in File Explorer. A particular key can have subkeys, just as a folder can have subfolders. Each key can be deleted, as long as the user has the appropriate permissions to do so, and the key is not a base key or at the level directly under the base keys.
Each key can also have multiple values associated with it a value can be compared to a file , which are used to store the information - for example, information about an application installed on the computer. Each value holds one particular piece of information, which can be retrieved or updated when required.
Each subkey holds the information specific to that application, such as color settings, screen location and size, or recognized file extensions. Note that information stored in the registry is available to other applications and users, and therefore should not be used to store security data or critical application information. For example, do not allow callers to enter arbitrary keys or values. Starting in the. NET Framework 4, the length of a registry key is no longer limited to characters. Gets a SafeRegistryHandle object that represents the registry key that the current RegistryKey object encapsulates.
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Creates a new subkey or opens an existing subkey with the specified access. Available starting with. NET Framework 4. Creates a new subkey or opens an existing subkey for write access, using the specified permission check option.
Creates a subkey or opens a subkey for write access, using the specified permission check and registry options. Creates a subkey or opens a subkey for write access, using the specified permission check option, registry option, and registry security. Creates a new subkey or opens an existing subkey for write access, using the specified permission check option and registry security. Database PHP. Get Go. GinkgoConfigType Go. LanguageBean Java. MessageTag Java. GetValue public method. RegistryKey Class Documentation.
Example 1. Show file. File: DotNetFrameworkInfo. ToString parentKey. BaseVersion; versionInfo. GetValue "InstallPath" ; versionInfo. ToInt32 parentKey. GetValue "SP" ; if parentKey. Contains "Client" versionInfo. Contains "Full" versionInfo. Contains versionInfo versions. Example 2. File: PackageInfo. GetFileName key. OpenSubKey "Applications" ; if appKey! GetValue "DefaultStartPage" ; if! Example 3.
File: SerializableRegistryKey. GetValueNames ; if this. GetValue this. GetSubKeyNames ; if this. OpenSubKey this. Example 4. File: RegistryPolicyResolver. GetValue propInfo. Name ; if valueFromRegistry! SetValue options, Convert. SetValue options, Type. GetType Convert. Example 5. File: ZipHelper. Example 6.
File: PCAnalyzer. Name; value. ToString ; if value. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services.
Privacy policy. Thank you. Microsoft makes no warranties, express or implied, with respect to the information provided here. The name of the value whose registry data type is to be retrieved.
0コメント