IVsWritableSettingsStore.SetBool(String, String, Int32) Método

Definição

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

Int32

Retorna S_OK se o valor foi definido. Se a coleção não existir, o método retornará Microsoft.VisualStudio.E_INVALIDARG .

Aplica-se a