Share via


Preferences.Remove Method

Definition

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