Partilhar via


IPersistXMLFragment.Load(Guid, UInt32, String) Method

Definition

The project opens and reads the XML fragment and the project subtype GUID from a specified file type.

public:
 int Load(Guid % guidFlavor, System::UInt32 storage, System::String ^ pszXMLFragment);
public int Load (ref Guid guidFlavor, uint storage, string pszXMLFragment);
abstract member Load : Guid * uint32 * string -> int
Public Function Load (ByRef guidFlavor As Guid, storage As UInteger, pszXMLFragment As String) As Integer

Parameters

guidFlavor
Guid

[in] GUID of the project subtype.

storage
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).

pszXMLFragment
String

[in] String containing the XML fragment.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

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).

Applies to