Partager via


IPersistXMLFragment.InitNew(Guid, UInt32) Method

Definition

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

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

Parameters

guidFlavor
Guid

[in] Specifies the GUID of the project subtype.

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

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::InitNew(  
   [in] REFGUID guidFlavor,  
   [in] PersistStorageType storage  
);  

Applies to