RegistrySetting.SetValue Method (String, String)


Configures the registry setting with a String (REG_SZ) value by using the specified string.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management.Interop (in Microsoft.GroupPolicy.Management.Interop.dll)


public void SetValue(
    string name,
    string value
void SetValue(
    String^ name,
    String^ value
member SetValue : 
        name:string *
        value:string -> unit
Public Sub SetValue (
    name As String,
    value As String


  • name
    Type: System.String

    The value name. Specify an empty string (“”) or null for the default value.

See Also

SetValue Overload
RegistrySetting Class
Microsoft.GroupPolicy Namespace

Return to top