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
'Usage
Dim instance As IPersistXMLFragment
Dim guidFlavor As Guid
Dim storage As UInteger
Dim returnValue As Integer
returnValue = instance.InitNew(guidFlavor, _
storage)
int InitNew(
ref Guid guidFlavor,
uint storage
)
int InitNew(
[InAttribute] Guid% guidFlavor,
[InAttribute] unsigned int storage
)
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
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.