Udostępnij za pośrednictwem


IPersistXMLFragment.Save(Guid, UInt32, String, Int32) Method

Definition

Base project system directs the project subtype to build the project subtype XML information and save it in the project or user file.

public:
 int Save(Guid % guidFlavor, System::UInt32 storage, [Runtime::InteropServices::Out] System::String ^ % pbstrXMLFragment, int fClearDirty);
public int Save (ref Guid guidFlavor, uint storage, out string pbstrXMLFragment, int fClearDirty);
abstract member Save : Guid * uint32 * string * int -> int
Public Function Save (ByRef guidFlavor As Guid, storage As UInteger, ByRef pbstrXMLFragment As String, fClearDirty As Integer) As Integer

Parameters

guidFlavor
Guid

[in] Project subtype GUID.

storage
UInt32

[in] Storage type for the file. Values taken from _PersistStorageType enumeration. The file type is either project file (.vsproj or .vbproj) or user file (.vsproj.user or .vbproj.user).

pbstrXMLFragment
String

[out] Pointer to the path of the new document containing the XML fragment.

fClearDirty
Int32

[in] Indicates whether to clear the dirty flag after the save is complete. If true, the flag should be cleared. If false, the flag should be left unchanged.

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::Save(  
   [in] REFGUID guidFlavor,  
   [in] PersistStorageType storage,  
   [out] BSTR *pbstrXMLFragment,  
   [in] BOOL fClearDirty  
);  

Applies to