RegistryPreference.WriteStringValue Method (RegistryHive, String, String, String, PreferenceAction, Int32, Boolean)

 

Writes a Registry preference item that configures a String registry value.

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

Syntax

public void WriteStringValue(
    RegistryHive hive,
    string keyPath,
    string valueName,
    string value,
    PreferenceAction action,
    int order,
    bool disable
)
public:
void WriteStringValue(
    RegistryHive hive,
    String^ keyPath,
    String^ valueName,
    String^ value,
    PreferenceAction action,
    int order,
    bool disable
)
member WriteStringValue : 
        hive:RegistryHive *
        keyPath:string *
        valueName:string *
        value:string *
        action:PreferenceAction *
        order:int *
        disable:bool -> unit
Public Sub WriteStringValue (
    hive As RegistryHive,
    keyPath As String,
    valueName As String,
    value As String,
    action As PreferenceAction,
    order As Integer,
    disable As Boolean
)

Parameters

  • valueName
    Type: System.String

    The name of the registry value. You can specify an empty string (“”) for the default value.

  • value
    Type: System.String

    A string that contains the value data.

  • order
    Type: System.Int32

    The order for the Registry preference item.

Remarks

true to disable the Registry preference item; otherwise, false.

See Also

RegistryPreference Class
Microsoft.GroupPolicy Namespace

Return to top