LoadFromString (loadfromstring)
Loads a profile from the specified XML profile definition string.
Syntax
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. |