RegistryPreference.WriteExpandStringValue Method (RegistryHive, String, String, String, PreferenceAction, Int32, Boolean)
Writes a Registry preference item that configures an ExpandString registry value.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public void WriteExpandStringValue(
RegistryHive hive,
string keyPath,
string valueName,
string value,
PreferenceAction action,
int order,
bool disable
)
public:
void WriteExpandStringValue(
RegistryHive hive,
String^ keyPath,
String^ valueName,
String^ value,
PreferenceAction action,
int order,
bool disable
)
member WriteExpandStringValue :
hive:RegistryHive *
keyPath:string *
valueName:string *
value:string *
action:PreferenceAction *
order:int *
disable:bool -> unit
Public Sub WriteExpandStringValue (
hive As RegistryHive,
keyPath As String,
valueName As String,
value As String,
action As PreferenceAction,
order As Integer,
disable As Boolean
)
Parameters
hive
Type: Microsoft.Win32.RegistryHiveOne of theRegistryHive values that specifies the registry hive of the key.
keyPath
Type: System.StringThe path to the registry key.
valueName
Type: System.StringThe name of the registry value. You can specify an empty string (“”) for the default value.
value
Type: System.StringA string that contains the registry value data.
action
Type: Microsoft.GroupPolicy.PreferenceActionOne of the PreferenceAction values that specifies the action.
order
Type: System.Int32The order for the Registry preference item.
disable
Type: System.Booleantrue to disable the Registry preference item; otherwise, false.
See Also
RegistryPreference Class
Microsoft.GroupPolicy Namespace
Return to top