IVsSettingsReader.ReadSettingBoolean Method

Returns the value of a Boolean object stored in the Visual Studio settings file.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function ReadSettingBoolean ( _
    pszSettingName As String, _
    <OutAttribute> ByRef pfSettingValue As Integer _
) As Integer
int ReadSettingBoolean(
    string pszSettingName,
    out int pfSettingValue
)
int ReadSettingBoolean(
    [InAttribute] String^ pszSettingName, 
    [OutAttribute] int% pfSettingValue
)
abstract ReadSettingBoolean : 
        pszSettingName:string * 
        pfSettingValue:int byref -> int
function ReadSettingBoolean(
    pszSettingName : String, 
    pfSettingValue : int
) : int

Parameters

  • pszSettingName
    Type: String

    [in] String uniquely identifying the data element to be retrieved.

  • pfSettingValue
    Type: Int32%

    [out] Boolean value retrieved from the specified data element of the Visual Studio settings file.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The names specified by pfSettingValue need to be unique within a Custom Settings Point, as the IDE uses the Custom Settings Point identifying GUID and the value of pfSettingValue to identify each saved setting.

Because the value of pfSettingValue must be unique, the order of calling ReadSettingBoolean with respect to other methods of the IVsSettingsReader interface is not relevant.

.NET Framework Security

See Also

Reference

IVsSettingsReader Interface

Microsoft.VisualStudio.Shell.Interop Namespace

IVsSettingsReader

IVsSettingsWriter

ImportSettings

Other Resources

Persisting Settings

How to: Use Interop Assemblies to Import Settings

How to: Import Settings By Using the Managed Package Framework

Working with Settings