次の方法で共有


IVsWritableSettingsStore.SetInt(String, String, Int32) Method

Definition

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.

Applies to