IPreferences.Set<T>(String, T, String) 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 a value for a given key.
public void Set<T> (string key, T value, string? sharedName = default);
abstract member Set : string * 'T * string -> unit
Public Sub Set(Of T) (key As String, value As T, Optional sharedName As String = Nothing)
Type Parameters
- T
Type of the object that is stored in this preference.
Parameters
- key
- String
The key to set the value for.
- value
- T
Value to set.
- sharedName
- String
Shared container name.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.