Export (0) Print
Expand All

IVsStructuredFileIO.CreateNew Method

Creates a new multi-format file with format index.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int CreateNew (
	[InAttribute] string szFileName,
	[InAttribute] uint nFormatIndex,
	[InAttribute] uint dwShareMode,
	[InAttribute] uint dwCreationDisposition,
	[InAttribute] uint dwFlagsAndAttributes,
	[InAttribute] IVsStructuredFileIOHelper pIVsStructuredFileIOHelper,
	[InAttribute] string szFormatVersion,
	[InAttribute] string szDescription,
	out IVsPropertyFileOut ppIVsPropertyFileOut
)
int CreateNew (
	/** @attribute InAttribute() */ String szFileName, 
	/** @attribute InAttribute() */ UInt32 nFormatIndex, 
	/** @attribute InAttribute() */ UInt32 dwShareMode, 
	/** @attribute InAttribute() */ UInt32 dwCreationDisposition, 
	/** @attribute InAttribute() */ UInt32 dwFlagsAndAttributes, 
	/** @attribute InAttribute() */ IVsStructuredFileIOHelper pIVsStructuredFileIOHelper, 
	/** @attribute InAttribute() */ String szFormatVersion, 
	/** @attribute InAttribute() */ String szDescription, 
	/** @attribute OutAttribute() */ /** @ref */ IVsPropertyFileOut ppIVsPropertyFileOut
)
JScript does not support passing value-type arguments by reference.

Parameters

szFileName

[in] Null-terminated string containing the file name.

nFormatIndex

[in] Integer containing the format index.

dwShareMode

[in] Double word containing the share mode.

dwCreationDisposition

[in] Double word containing the creation disposition.

dwFlagsAndAttributes

[in] Double word containing the flags and attributes.

pIVsStructuredFileIOHelper

[in] Pointer to an IVsStructuredFileIOHelper object.

szFormatVersion
szDescription

[in] Null-terminated string containing the description.

ppIVsPropertyFileOut

[out] Pointer to a pointer to an IVsPropertyFileOut object.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsStructuredFileIO::CreateNew(
   [in] LPCOLESTR szFileName,
   [in] ULONG nFormatIndex,
   [in] DWORD dwShareMode,
   [in] DWORD dwCreationDisposition,
   [in] DWORD dwFlagsAndAttributes,
   [in] IVsStructuredFileIOHelper *pIVsStructuredFileIOHelper,
   [in] LPCOLESTR szFormatVersion,
   [in] LPCOLESTR szDescription,
   [out] IVsPropertyFileOut **ppIVsPropertyFileOut
);

Community Additions

ADD
Show:
© 2014 Microsoft