IPersistXMLFragment::Save Method (Guid, UInt32, String^, Int32)
Visual Studio 2015
Base project system directs the project subtype to build the project subtype XML information and save it in the project or user file.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int Save( [InAttribute] Guid% guidFlavor, unsigned int storage, [OutAttribute] String^% pbstrXMLFragment, int fClearDirty )
Parameters
- guidFlavor
-
Type:
System::Guid
[in] Project subtype GUID.
- storage
-
Type:
System::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
-
Type:
System::String^
[out] Pointer to the path of the new document containing the XML fragment.
- fClearDirty
-
Type:
System::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.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT IPersistXMLFragment::Save( [in] REFGUID guidFlavor, [in] PersistStorageType storage, [out] BSTR *pbstrXMLFragment, [in] BOOL fClearDirty );
Show: