This documentation is archived and is not being maintained.

IPersistXMLFragment.InitNew Method

Initializes the project extension properties and other build-independent data.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int InitNew(
	ref Guid guidFlavor,
	uint storage


Type: System.Guid
[in] Specifies the GUID of the project subtype.
Type: System.UInt32
[in] Specifies the storage type used for persisting files. Values are taken from the _PersistStorageType enumeration. The file type is either project file (.vsproj or .vbproj) or user file (.vsproj.user or .vbproj.user).

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell80.idl:

HRESULT IPersistXMLFragment::InitNew(
   [in] REFGUID guidFlavor,
   [in] PersistStorageType storage