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)

Syntax

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

Parameters

  • 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