Freigeben über


WritableSettingsStore.SetInt32(String, String, Int32) Method

Definition

Updates the value of the specified property to the given integer value while setting its data type to Int32. If the previous data type of the property is different, it overwrites it. If the property does not exist it creates one.

public:
 abstract void SetInt32(System::String ^ collectionPath, System::String ^ propertyName, int value);
public:
 abstract void SetInt32(Platform::String ^ collectionPath, Platform::String ^ propertyName, int value);
 abstract void SetInt32(std::wstring const & collectionPath, std::wstring const & propertyName, int value);
public abstract void SetInt32 (string collectionPath, string propertyName, int value);
abstract member SetInt32 : string * string * int -> unit
Public MustOverride Sub SetInt32 (collectionPath As String, propertyName As String, value As Integer)

Parameters

collectionPath
String

Path of the collection of the property.

propertyName
String

Name of the property.

value
Int32

New value of the property.

Exceptions

If the collection does not exist, this exception is thrown.

Remarks

This method is safe to access from any thread.

Applies to