RegistryPreference.WriteBinaryValue Method (RegistryHive, String, String, Byte[], PreferenceAction, Int32, Boolean)


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

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


public void WriteBinaryValue(
    RegistryHive hive,
    string keyPath,
    string valueName,
    byte[] value,
    PreferenceAction action,
    int order,
    bool disable
void WriteBinaryValue(
    RegistryHive hive,
    String^ keyPath,
    String^ valueName,
    array<unsigned char>^ value,
    PreferenceAction action,
    int order,
    bool disable
member WriteBinaryValue : 
        hive:RegistryHive *
        keyPath:string *
        valueName:string *
        value:byte[] *
        action:PreferenceAction *
        order:int *
        disable:bool -> unit
Public Sub WriteBinaryValue (
    hive As RegistryHive,
    keyPath As String,
    valueName As String,
    value As Byte(),
    action As PreferenceAction,
    order As Integer,
    disable As Boolean


  • valueName
    Type: System.String

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

  • value
    Type: System.Byte[]

    An array of 8-bit unsigned integers that contains the value data.

  • order
    Type: System.Int32

    The order for the Registry preference item.

  • disable
    Type: System.Boolean

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

See Also

RegistryPreference Class
Microsoft.GroupPolicy Namespace

Return to top