RegistryPolicy.WriteQWordValue Method (RegistryHive, String, String, UInt64)

 

Writes a registry-based policy setting that configures a QWord registry value by using a 64-bit unsigned integer.

This API is not CLS-compliant.

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

Syntax

[CLSCompliantAttribute(false)]
public void WriteQWordValue(
    RegistryHive hive,
    string keyPath,
    string valueName,
    ulong value
)
public:
[CLSCompliantAttribute(false)]
void WriteQWordValue(
    RegistryHive hive,
    String^ keyPath,
    String^ valueName,
    unsigned long long value
)
[<CLSCompliantAttribute(false)>]
member WriteQWordValue : 
        hive:RegistryHive *
        keyPath:string *
        valueName:string *
        value:uint64 -> unit
<CLSCompliantAttribute(False)>
Public Sub WriteQWordValue (
    hive As RegistryHive,
    keyPath As String,
    valueName As String,
    value As ULong
)

Parameters

  • valueName
    Type: System.String

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

  • value
    Type: System.UInt64

    A 64-bit unsigned integer that contains the value data.

Exceptions

Exception Condition
ObjectDisposedException

The RegistryPolicy is disposed.

InvalidOperationException

The RegistryPolicy instance is read-only.

ArgumentNullException

keyPath is null

ArgumentException

keyPath is an empty string (“”)

-or-

hive is not CurrentUser or LocalMachine

See Also

WriteQWordValue Overload
RegistryPolicy Class
Microsoft.GroupPolicy Namespace

Return to top