RegistrySetting.GetBinaryValue Method ()
Retrieves the data value for a registry setting that modifies the registry with Binary (REG_BINARY) data.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management.Interop (in Microsoft.GroupPolicy.Management.Interop.dll)
Syntax
public byte[] GetBinaryValue()
public:
array<unsigned char>^ GetBinaryValue()
member GetBinaryValue : unit -> byte[]
Public Function GetBinaryValue As Byte()
Return Value
Type: System.Byte[]
Returns Byte. The binary 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