C# 클래스 Microsoft.Win32.RegistryKey

상속: System.MarshalByRefObject, IDisposable
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ClosePerfDataKey void
CreateSubKeyInternalCore RegistryKey
DeleteSubKeyCore void
DeleteSubKeyTreeCore void
DeleteValueCore void
FlushCore void
FromHandle Microsoft.Win32.RegistryKey
FromHandle Microsoft.Win32.RegistryKey
GetValueKindCore RegistryValueKind
GetValueNamesCore string[]
InternalGetSubKeyNamesCore string[]
InternalGetValueCore object
InternalOpenSubKeyCore RegistryKey
InternalSubKeyCountCore int
InternalValueCountCore int
IsWritable bool
OpenBaseKeyCore RegistryKey
OpenRemoteBaseKeyCore RegistryKey
RegistryKey
SetValueCore void
Win32Error void
Win32ErrorStatic void

공개 메소드들

메소드 설명
CreateSubKey ( string subkey ) : Microsoft.Win32.RegistryKey
CreateSubKey ( string subkey, bool writable ) : Microsoft.Win32.RegistryKey
CreateSubKey ( string subkey, bool writable, Microsoft options ) : Microsoft.Win32.RegistryKey
DeleteSubKey ( string subkey ) : void
DeleteSubKey ( string subkey, bool throwOnMissingSubKey ) : void
DeleteSubKeyTree ( string subkey ) : void
DeleteSubKeyTree ( string subkey, bool throwOnMissingSubKey ) : void
DeleteValue ( string name ) : void
DeleteValue ( string name, bool throwOnMissingValue ) : void
Dispose ( ) : void
Flush ( ) : void
GetSubKeyNames ( ) : string[]
GetValue ( string name ) : object
GetValue ( string name, object defaultValue ) : object
GetValue ( string name, object defaultValue, Microsoft options ) : object
GetValueKind ( string name ) : Microsoft.Win32.RegistryValueKind
GetValueNames ( ) : string[]
OpenBaseKey ( Microsoft hKey, Microsoft view ) : Microsoft.Win32.RegistryKey
OpenSubKey ( string name ) : Microsoft.Win32.RegistryKey
OpenSubKey ( string name, System rights ) : Microsoft.Win32.RegistryKey
OpenSubKey ( string name, bool writable ) : Microsoft.Win32.RegistryKey
SetValue ( string name, object value ) : void
SetValue ( string name, object value, Microsoft valueKind ) : void
ToString ( ) : string

비공개 메소드들

메소드 설명
ClosePerfDataKey ( ) : void
CreateSubKeyInternalCore ( string subkey, bool writable, RegistryOptions registryOptions ) : RegistryKey
DeleteSubKeyCore ( string subkey, bool throwOnMissingSubKey ) : void
DeleteSubKeyTreeCore ( string subkey ) : void
DeleteValueCore ( string name, bool throwOnMissingValue ) : void
FlushCore ( ) : void
FromHandle ( Microsoft handle ) : Microsoft.Win32.RegistryKey
FromHandle ( Microsoft handle, Microsoft view ) : Microsoft.Win32.RegistryKey
GetValueKindCore ( string name ) : RegistryValueKind
GetValueNamesCore ( int values ) : string[]

Retrieves an array of strings containing all the value names.

InternalGetSubKeyNamesCore ( int subkeys ) : string[]
InternalGetValueCore ( string name, object defaultValue, bool doNotExpand ) : object
InternalOpenSubKeyCore ( string name, RegistryRights rights, bool throwOnPermissionFailure ) : RegistryKey
InternalSubKeyCountCore ( ) : int
InternalValueCountCore ( ) : int
IsWritable ( int rights ) : bool
OpenBaseKeyCore ( RegistryHive hKeyHive, RegistryView view ) : RegistryKey

Retrieves a new RegistryKey that represents the requested key. Valid values are: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_PERFORMANCE_DATA, HKEY_CURRENT_CONFIG.

OpenRemoteBaseKeyCore ( RegistryHive hKey, string machineName, RegistryView view ) : RegistryKey
RegistryKey ( )
SetValueCore ( string name, object value, RegistryValueKind valueKind ) : void
Win32Error ( int errorCode, string str ) : void

After calling GetLastWin32Error(), it clears the last error field, so you must save the HResult and pass it to this method. This method will determine the appropriate exception to throw dependent on your error, and depending on the error, insert a string into the message gotten from the ResourceManager.

Win32ErrorStatic ( int errorCode, string str ) : void

메소드 상세

CreateSubKey() 공개 메소드

public CreateSubKey ( string subkey ) : Microsoft.Win32.RegistryKey
subkey string
리턴 Microsoft.Win32.RegistryKey

CreateSubKey() 공개 메소드

public CreateSubKey ( string subkey, bool writable ) : Microsoft.Win32.RegistryKey
subkey string
writable bool
리턴 Microsoft.Win32.RegistryKey

CreateSubKey() 공개 메소드

public CreateSubKey ( string subkey, bool writable, Microsoft options ) : Microsoft.Win32.RegistryKey
subkey string
writable bool
options Microsoft
리턴 Microsoft.Win32.RegistryKey

DeleteSubKey() 공개 메소드

public DeleteSubKey ( string subkey ) : void
subkey string
리턴 void

DeleteSubKey() 공개 메소드

public DeleteSubKey ( string subkey, bool throwOnMissingSubKey ) : void
subkey string
throwOnMissingSubKey bool
리턴 void

DeleteSubKeyTree() 공개 메소드

public DeleteSubKeyTree ( string subkey ) : void
subkey string
리턴 void

DeleteSubKeyTree() 공개 메소드

public DeleteSubKeyTree ( string subkey, bool throwOnMissingSubKey ) : void
subkey string
throwOnMissingSubKey bool
리턴 void

DeleteValue() 공개 메소드

public DeleteValue ( string name ) : void
name string
리턴 void

DeleteValue() 공개 메소드

public DeleteValue ( string name, bool throwOnMissingValue ) : void
name string
throwOnMissingValue bool
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

GetSubKeyNames() 공개 메소드

public GetSubKeyNames ( ) : string[]
리턴 string[]

GetValue() 공개 메소드

public GetValue ( string name ) : object
name string
리턴 object

GetValue() 공개 메소드

public GetValue ( string name, object defaultValue ) : object
name string
defaultValue object
리턴 object

GetValue() 공개 메소드

public GetValue ( string name, object defaultValue, Microsoft options ) : object
name string
defaultValue object
options Microsoft
리턴 object

GetValueKind() 공개 메소드

public GetValueKind ( string name ) : Microsoft.Win32.RegistryValueKind
name string
리턴 Microsoft.Win32.RegistryValueKind

GetValueNames() 공개 메소드

public GetValueNames ( ) : string[]
리턴 string[]

OpenBaseKey() 공개 정적인 메소드

public static OpenBaseKey ( Microsoft hKey, Microsoft view ) : Microsoft.Win32.RegistryKey
hKey Microsoft
view Microsoft
리턴 Microsoft.Win32.RegistryKey

OpenSubKey() 공개 메소드

public OpenSubKey ( string name ) : Microsoft.Win32.RegistryKey
name string
리턴 Microsoft.Win32.RegistryKey

OpenSubKey() 공개 메소드

public OpenSubKey ( string name, System rights ) : Microsoft.Win32.RegistryKey
name string
rights System
리턴 Microsoft.Win32.RegistryKey

OpenSubKey() 공개 메소드

public OpenSubKey ( string name, bool writable ) : Microsoft.Win32.RegistryKey
name string
writable bool
리턴 Microsoft.Win32.RegistryKey

SetValue() 공개 메소드

public SetValue ( string name, object value ) : void
name string
value object
리턴 void

SetValue() 공개 메소드

public SetValue ( string name, object value, Microsoft valueKind ) : void
name string
value object
valueKind Microsoft
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string