Preferences.Remove 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.
Overloads
Remove(String, String) |
Removes a key and its associated value if it exists. |
Remove(String) |
Removes a key and its associated value if it exists. |
Remove(String, String)
- Source:
- Preferences.shared.cs
- Source:
- Preferences.shared.cs
Removes a key and its associated value if it exists.
public:
static void Remove(System::String ^ key, System::String ^ sharedName);
public static void Remove (string key, string? sharedName);
static member Remove : string * string -> unit
Public Shared Sub Remove (key As String, sharedName As String)
Parameters
- key
- String
Preference key.
- sharedName
- String
Shared container name.
Applies to
Remove(String)
- Source:
- Preferences.shared.cs
- Source:
- Preferences.shared.cs
Removes a key and its associated value if it exists.
public:
static void Remove(System::String ^ key);
public static void Remove (string key);
static member Remove : string -> unit
Public Shared Sub Remove (key As String)
Parameters
- key
- String
The key to remove.
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.