Udostępnij za pośrednictwem


Metoda IVsWritableSettingsStore.GetBoolOrDefault — (String, String, Int32, Int32)

 

Opublikowano: czerwiec 2016

Zwraca wartość właściwości typu boolean lub określoną wartość domyślną.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop.10.0 (w Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Składnia

int GetBoolOrDefault(
    string collectionPath,
    string propertyName,
    int defaultValue,
    out int value
)
int GetBoolOrDefault(
    String^ collectionPath,
    String^ propertyName,
    int defaultValue,
    [OutAttribute] int% value
)
abstract GetBoolOrDefault : 
        collectionPath:string *
        propertyName:string *
        defaultValue:int *
        value:int byref -> int
Function GetBoolOrDefault (
    collectionPath As String,
    propertyName As String,
    defaultValue As Integer,
    <OutAttribute> ByRef value As Integer
) As Integer

Parametry

  • defaultValue
    Type: System.Int32

    [in] Wartość domyślna zwrócić, jeśli właściwość nie jest ustawiona.

Wartość zwracana

Type: System.Int32

Zwraca S_OK Jeśli właściwość został zwrócony, S_FALSE Jeśli właściwość nie istnieje lub F:Microsoft.VisualStudio.E_INVALIDARG Jeśli typ właściwości nie jest wartością logiczną.

Implementuje

IVsSettingsStore.GetBoolOrDefault(String, String, Int32, Int32)

Uwagi

Jeśli właściwość została zapisana jako wartość całkowitą znakiem lub bez znaku, regularne semantyka rzutowanie typów C++ są stosowane na wartość danych wyjściowych.

Zobacz też

Interfejs IVsWritableSettingsStore
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku