IVsStringMap.SetValue(String, String) Method

Definition

Sets the value of a named key.

public:
 int SetValue(System::String ^ szKey, System::String ^ szValue);
public:
 int SetValue(Platform::String ^ szKey, Platform::String ^ szValue);
int SetValue(std::wstring const & szKey, std::wstring const & szValue);
public int SetValue (string szKey, string szValue);
abstract member SetValue : string * string -> int
Public Function SetValue (szKey As String, szValue As String) As Integer

Parameters

szKey
String

[in] The name of the key to set.

szValue
String

[in] The value to associate with the key.

Returns

Returns S_OK if the value was set.

Remarks

Null and empty strings are not valid key names. Any string (including a null string) is a valid value. Null values are returned from GetValue as empty strings. If an entry with the given key name already exists, it will be overwritten.

Applies to