IVsStringMap::SetValue Method (String^, String^)

 

Sets the value of a named key.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int SetValue(
	String^ szKey,
	String^ szValue
)

Parameters

szKey
Type: System::String^

[in] The name of the key to set.

szValue
Type: System::String^

[in] The value to associate with the key.

Return Value

Type: System::Int32

Returns S_OK if the value was set.

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.

Return to top
Show: