NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RegistryKey.SetValue

Sets the specified value. The string subKey is not case sensitive.

[Visual Basic]
Public Sub SetValue( _
   ByVal name As String, _
   ByVal value As Object _
)
[C#]
public void SetValue(
   string name,
   object value
);
[C++]
public: void SetValue(
   String* name,
   Object* value
);
[JScript]
public function SetValue(
   name : String,
   value : Object
);

Parameters

name
Name of value to store data in.
value
[To be supplied.]

Return Value

Returns NULL if name is not found.

Exceptions

Exception Type Condition
SecurityException The user does not have RegistryPermission.SetInclude(write, currentKey) access.

Remarks

Values allowed in the registry are dword, binary, and string (multi_sz, expanded_sz, and sz).

See Also

RegistryKey Class | RegistryKey Members | Microsoft.Win32 Namespace