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

Definição

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

public:
 int GetBoolOrDefault(System::String ^ collectionPath, System::String ^ propertyName, int defaultValue, [Runtime::InteropServices::Out] int % value);
int GetBoolOrDefault(std::wstring const & collectionPath, std::wstring const & propertyName, int defaultValue, [Runtime::InteropServices::Out] int & value);
public int GetBoolOrDefault (string collectionPath, string propertyName, int defaultValue, out int value);
abstract member GetBoolOrDefault : string * string * int *  -> int
Public Function GetBoolOrDefault (collectionPath As String, propertyName As String, defaultValue As Integer, ByRef value As Integer) As Integer

Parâmetros

collectionPath
String

no O caminho da coleção.

propertyName
String

no O nome da propriedade.

defaultValue
Int32

no O valor padrão a ser retornado se a propriedade não estiver definida.

value
Int32

fora O valor.

Retornos

Int32

Retorna S_OK se a propriedade foi retornada, S_FALSE se a propriedade não existir ou Microsoft.VisualStudio.E_INVALIDARG se o tipo de propriedade não for booliano.

Comentários

Se a propriedade tiver sido armazenada como um valor inteiro assinado ou não assinado, a semântica de conversão de tipo C++ regular será aplicada no valor de saída.

Aplica-se a