src/Microsoft/Windows/Registry/_Library/ExtensionMethods_IRegistryKey.cs
/// <summary>
/// Gets the value of a name/value pair of type REG_SZ (<see cref="RegistryValueKind.String"/>) as string or a fallback value
/// </summary>
/// <param name="registryKey">The extended <see cref="IRegistryKey"/> instance.</param>
/// <param name="name">The name of the name/value pair.</param>
/// <param name="defaultValue">The default value to be used as fallback.</param>
/// <param name="expand">Set to true, if the value should be expanded.</param>
/// <returns>If found, the value of the Name/Value pair as string, which is optionally expanded. Otherwise, the defaultValue.</returns>
Gets the value of a name/value pair of type REG_SZ () as string or a fallback value
Gets the value of a name / value pair of type REG_SZ () as string or a fallback value
[DebuggerStepThrough]
        [MethodImpl( MethodImplOptions.AggressiveInlining )]
        public static string Get_REG_EXP_SZ( this IRegistryKey registryKey, string name, string defaultValue = "", bool expand = true ) {
            return registryKey.GetString( name, defaultValue, expand );
        }
[ DebuggerStepThrough ] [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static string Get_REG_EXP_SZ ( this IRegistryKey registryKey , string name , string defaultValue = " " , bool expand = true ) { return registryKey . GetString ( name , defaultValue , expand ) ; }
Gets the value of a name/value pair of type REG_SZ () as string or a fallback value
Gets the value of a name / value pair of type REG_SZ () as string or a fallback value
If found, the value of the Name/Value pair as string, which is optionally expanded. Otherwise, the defaultValue.
If found the value of the Name / Value pair as string which is optionally expanded . Otherwise the defaultValue .
IRegistryKey
this
name
string
The name of the name/value pair.
The name of the name / value pair .
defaultValue
string
The default value to be used as fallback.
The default value to be used as fallback .
expand
bool
Set to true, if the value should be expanded.
Set to true if the value should be expanded .
registryKey
The extended  instance.
The extended instance .