IVsWritableSettingsStore.SetBool(String, String, Int32) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Define o valor de uma propriedade booliana. Se o tipo de dados anterior da propriedade não for SettingsType_Int, esse método o substituirá. Se a propriedade não existir, ela criará uma.
public:
int SetBool(System::String ^ collectionPath, System::String ^ propertyName, int value);
public:
int SetBool(Platform::String ^ collectionPath, Platform::String ^ propertyName, int value);
int SetBool(std::wstring const & collectionPath, std::wstring const & propertyName, int value);
public int SetBool (string collectionPath, string propertyName, int value);
abstract member SetBool : string * string * int -> int
Public Function SetBool (collectionPath As String, propertyName As String, value As Integer) As Integer
Parâmetros
- collectionPath
- String
no O caminho para a coleção.
- propertyName
- String
no A propriedade.
- value
- Int32
no O valor.
Retornos
Retorna S_OK se o valor foi definido. Se a coleção não existir, o método retornará Microsoft.VisualStudio.E_INVALIDARG .