Compartir a través de


IVsWritableSettingsStore.SetBool(String, String, Int32) Method

Definition

Sets the value of a boolean property. If the previous data type of the property is not SettingsType_Int, this method overwrites it. If the property does not, exist, it creates one.

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

Parameters

collectionPath
String

[in] The path to the collection.

propertyName
String

[in] The property.

value
Int32

[in] The value.

Returns

Returns S_OK if the value was set. If the collection does not exist, the method returns Microsoft.VisualStudio.E_INVALIDARG.

Remarks

This method is safe to access from any thread.

Applies to