IVMVirtualServer::SetConfigurationValue method
The SetConfigurationValue method sets preference data for the current user for the requested key.
Syntax
HRESULT SetConfigurationValue(
[in] BSTR preferenceKey,
[in] VARIANT preferenceValue
);
Parameters
-
preferenceKey [in]
-
Key used to identify the preference, as stored in the configuration file.
-
preferenceValue [in]
-
Variant specifying the preference value. Variant type may be one of: VT_ARRAY|VT_UI1 (raw bytes), VT_BSTR (string), VT_UI4 (integer), or VT_BOOL (Boolean).
Return value
This method can return one of these values.
This method supports standard return values, as well as the following. For information on Virtual Server specific return values not listed below, see HRESULT Codes Specific to the Virtual Server.
Return code | Description |
---|---|
|
The operation was successful. |
|
The preferenceKey or preferenceValue parameter is NULL. |
|
The preferenceKey parameter is not valid or is an empty string. |
|
An unexpected error occurred. |
Remarks
This method provides low-level access to any preference value for the current user. It can be used to set preference values for customer-defined keys.
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|