IVsWritableSettingsStore.SetInt(String, String, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the value of an integer 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 SetInt(System::String ^ collectionPath, System::String ^ propertyName, int value);
public:
int SetInt(Platform::String ^ collectionPath, Platform::String ^ propertyName, int value);
int SetInt(std::wstring const & collectionPath, std::wstring const & propertyName, int value);
public int SetInt (string collectionPath, string propertyName, int value);
abstract member SetInt : string * string * int -> int
Public Function SetInt (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 E_INVALIDARG.
Remarks
This method is safe to access from any thread.