RegistrySetting.GetStringValue Method ()
Retrieves the data value for a registry setting that modifies the registry with String (REG_SZ) data.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management.Interop (in Microsoft.GroupPolicy.Management.Interop.dll)
Syntax
public string GetStringValue()
public:
String^ GetStringValue()
member GetStringValue : unit -> string
Public Function GetStringValue As String
Return Value
Type: System.String
Returns String. The String 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