Share via


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)

Syntax

'Declaration
Function InitNew ( _
    ByRef guidFlavor As Guid, _
    storage As UInteger _
) As Integer
int InitNew(
    ref Guid guidFlavor,
    uint storage
)
int InitNew(
    [InAttribute] Guid% guidFlavor, 
    [InAttribute] unsigned int storage
)
abstract InitNew : 
        guidFlavor:Guid byref * 
        storage:uint32 -> int 
function InitNew(
    guidFlavor : Guid, 
    storage : uint
) : int

Parameters

  • guidFlavor
    Type: System.Guid%
    [in] Specifies the GUID of the project subtype.
  • storage
    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.

Remarks

COM Signature

From vsshell80.idl:

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

.NET Framework Security

See Also

Reference

IPersistXMLFragment Interface

Microsoft.VisualStudio.Shell.Interop Namespace