Udostępnij za pośrednictwem


Metoda IVsWritableSettingsStore.GetInt64OrDefault — (String, String, Int64, Int64)

 

Zwraca wartość 64-bitowa liczba całkowita 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 GetInt64OrDefault(
    string collectionPath,
    string propertyName,
    long defaultValue,
    out long value
)
int GetInt64OrDefault(
    String^ collectionPath,
    String^ propertyName,
    long long defaultValue,
    [OutAttribute] long long% value
)
abstract GetInt64OrDefault : 
        collectionPath:string *
        propertyName:string *
        defaultValue:int64 *
        value:int64 byref -> int
Function GetInt64OrDefault (
    collectionPath As String,
    propertyName As String,
    defaultValue As Long,
    <OutAttribute> ByRef value As Long
) As Integer

Parametry

  • defaultValue
    Type: System.Int64

    [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 E_INVALIDARG Jeśli typ właściwości nie jest 64-bitowa liczba całkowita.

Implementuje

IVsSettingsStore.GetInt64OrDefault(String, String, Int64, Int64)

Uwagi

Jeśli właściwość została zapisana jako wartość ze znakiem, 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