The project opens and reads the XML fragment and the project subtype GUID from a specified file type.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
- Type: System.Guid
[in] GUID of the project subtype.
- Type: System.UInt32
[in] File storage type. Values are taken from _PersistStorageType enumeration. The file type is either project file (.vsproj or .vbproj) or user file (.vsproj.user or .vbproj.user).
- Type: System.String
[in] String containing the XML fragment.
HRESULT IPersistXMLFragment::Load( [in] REFGUID guidFlavor, [in] PersistStorageType storage, [in] LPCOLESTR pszXMLFragment );
Base project system loads the appropriate XML fragment from the project subtype project or user file given the project subtype GUID and then calls on the project subtype to not persist its data.
In a common scenario, a project subtype implementation intercepts its own GUID and handles the call, and forwards all other calls to inner subtypes (with their associated GUIDs).
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.