Método IVsSettingsStore.GetIntOrDefault (String, String, Int32, Int32)

 

Publicado: abril de 2016

Retorna uma propriedade de tipo inteiro ou um valor padrão especificado.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (em Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Sintaxe

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

Parâmetros

  • collectionPath
    Type: System.String

    [in] O caminho da coleção.

  • defaultValue
    Type: System.Int32

    [in] O valor padrão para retornar se a propriedade não é definida.

Valor de retorno

Type: System.Int32

Retorna S_OK se a propriedade foi retornada, S_FALSE se a propriedade não existe ou F:Microsoft.VisualStudio.E_INVALIDARG se o tipo de propriedade não é um inteiro.

Comentários

Se a propriedade foi armazenada como um valor sem sinal, semântica regular de conversão de tipo C++ é aplicada no valor de saída.

Consulte também

Interface IVsSettingsStore
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo