LoadFromString
Applies To: Windows 8, Windows 8.1
Loads a profile from the specified XML profile definition string.
HRESULT LoadFromString
([in] BSTR bstrProfile)
;
Parameters
- bstrProfile
[in] A string that contains the XML profile definition.
Return Value
The following table describes possible return values.
Return Value | Description |
---|---|
S_OK |
The function successfully loaded the profile. |
E_INVALIDARG |
One or more arguments are invalid. Use IParsingErrorInfo to obtain detailed error information. |
E_WPRC_FAILED_TO_VALIDATE_PROFILE |
The library failed to validate the profile. Use IParsingErrorInfo to obtain detailed error information. |