RegistrySetting.GetUInt32Value Method ()
Retrieves the data value as unsigned for a registry setting that modifies the registry with DWord (REG_DWORD) data.
This API is not CLS-compliant.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management.Interop (in Microsoft.GroupPolicy.Management.Interop.dll)
Syntax
[CLSCompliantAttribute(false)]
public uint GetUInt32Value()
public:
[CLSCompliantAttribute(false)]
unsigned int GetUInt32Value()
[<CLSCompliantAttribute(false)>]
member GetUInt32Value : unit -> uint32
<CLSCompliantAttribute(False)>
Public Function GetUInt32Value As UInteger
Return Value
Type: System.UInt32
Returns UInt32. The unsigned DWord data.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The registry setting does not have a value (the HasValue property is false). |
InvalidCastException |
See Also
RegistrySetting Class
Microsoft.GroupPolicy Namespace
Return to top