RegistrySetting.SetValue Method (String, UInt32)

 

Configures the registry setting with a DWord (REG_DWORD) value that has the specified value name by using the specified UInt32.

This API is not CLS-compliant.

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

Syntax

[CLSCompliantAttribute(false)]
public void SetValue(
    string name,
    uint value
)
public:
[CLSCompliantAttribute(false)]
void SetValue(
    String^ name,
    unsigned int value
)
[<CLSCompliantAttribute(false)>]
member SetValue : 
        name:string *
        value:uint32 -> unit
<CLSCompliantAttribute(False)>
Public Sub SetValue (
    name As String,
    value As UInteger
)

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