public System.Security.AccessControl.RegistrySecurity GetAccessControl(System.Security.AccessControl.AccessControlSections includeSections) { throw null; }
public string[] GetSubKeyNames() { throw null; }
public object? GetValue(string? name) { throw null; }
+ [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("defaultValue")]
public object? GetValue(string? name, object? defaultValue) { throw null; }
+ [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("defaultValue")]
public object? GetValue(string? name, object? defaultValue, Microsoft.Win32.RegistryValueOptions options) { throw null; }
public Microsoft.Win32.RegistryValueKind GetValueKind(string? name) { throw null; }
public string[] GetValueNames() { throw null; }
using Microsoft.Win32.SafeHandles;
using System;
+using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Win32
{
throw new PlatformNotSupportedException(SR.PlatformNotSupported_Registry);
}
+ [return: NotNullIfNotNull(nameof(defaultValue))]
private static object InternalGetValueCore(string? name, object? defaultValue, bool doNotExpand)
{
throw new PlatformNotSupportedException(SR.PlatformNotSupported_Registry);
using System.Buffers;
using System.Collections.Generic;
using System.Diagnostics;
+using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Security;
return names.ToArray();
}
+ [return: NotNullIfNotNull(nameof(defaultValue))]
private object? InternalGetValueCore(string? name, object? defaultValue, bool doNotExpand)
{
object? data = defaultValue;
/// <param name="name">Name of value to retrieve.</param>
/// <param name="defaultValue">Value to return if <i>name</i> doesn't exist.</param>
/// <returns>The data associated with the value.</returns>
+ [return: NotNullIfNotNull(nameof(defaultValue))]
public object? GetValue(string? name, object? defaultValue)
{
return InternalGetValue(name, defaultValue, false);
}
+ [return: NotNullIfNotNull(nameof(defaultValue))]
public object? GetValue(string? name, object? defaultValue, RegistryValueOptions options)
{
if (options < RegistryValueOptions.None || options > RegistryValueOptions.DoNotExpandEnvironmentNames)
return InternalGetValue(name, defaultValue, doNotExpand);
}
+ [return: NotNullIfNotNull(nameof(defaultValue))]
private object? InternalGetValue(string? name, object? defaultValue, bool doNotExpand)
{
EnsureNotDisposed();