IVsStructuredFileIO.CreateNew Yöntem

Tanım

Biçim dizini ile yeni bir çok biçimli dosya oluşturur.

public:
 int CreateNew(System::String ^ szFileName, System::UInt32 nFormatIndex, System::UInt32 dwShareMode, System::UInt32 dwCreationDisposition, System::UInt32 dwFlagsAndAttributes, Microsoft::VisualStudio::Shell::Interop::IVsStructuredFileIOHelper ^ pIVsStructuredFileIOHelper, System::String ^ szFormatVersion, System::String ^ szDescription, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsPropertyFileOut ^ % ppIVsPropertyFileOut);
public:
 int CreateNew(Platform::String ^ szFileName, unsigned int nFormatIndex, unsigned int dwShareMode, unsigned int dwCreationDisposition, unsigned int dwFlagsAndAttributes, Microsoft::VisualStudio::Shell::Interop::IVsStructuredFileIOHelper ^ pIVsStructuredFileIOHelper, Platform::String ^ szFormatVersion, Platform::String ^ szDescription, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsPropertyFileOut ^ &  ppIVsPropertyFileOut);
int CreateNew(std::wstring const & szFileName, unsigned int nFormatIndex, unsigned int dwShareMode, unsigned int dwCreationDisposition, unsigned int dwFlagsAndAttributes, Microsoft::VisualStudio::Shell::Interop::IVsStructuredFileIOHelper const & pIVsStructuredFileIOHelper, std::wstring const & szFormatVersion, std::wstring const & szDescription, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsPropertyFileOut const & & ppIVsPropertyFileOut);
public int CreateNew (string szFileName, uint nFormatIndex, uint dwShareMode, uint dwCreationDisposition, uint dwFlagsAndAttributes, Microsoft.VisualStudio.Shell.Interop.IVsStructuredFileIOHelper pIVsStructuredFileIOHelper, string szFormatVersion, string szDescription, out Microsoft.VisualStudio.Shell.Interop.IVsPropertyFileOut ppIVsPropertyFileOut);
abstract member CreateNew : string * uint32 * uint32 * uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsStructuredFileIOHelper * string * string * IVsPropertyFileOut -> int
Public Function CreateNew (szFileName As String, nFormatIndex As UInteger, dwShareMode As UInteger, dwCreationDisposition As UInteger, dwFlagsAndAttributes As UInteger, pIVsStructuredFileIOHelper As IVsStructuredFileIOHelper, szFormatVersion As String, szDescription As String, ByRef ppIVsPropertyFileOut As IVsPropertyFileOut) As Integer

Parametreler

szFileName
String

'ndaki Dosya adını içeren null ile sonlandırılmış dize.

nFormatIndex
UInt32

'ndaki Biçim dizinini içeren tamsayı.

dwShareMode
UInt32

'ndaki Paylaşma modunu içeren çift sözcük.

dwCreationDisposition
UInt32

'ndaki Oluşturma eğilimi içeren çift sözcük.

dwFlagsAndAttributes
UInt32

'ndaki Bayrakları ve öznitelikleri içeren çift sözcük.

pIVsStructuredFileIOHelper
IVsStructuredFileIOHelper

'ndaki Bir nesne işaretçisi IVsStructuredFileIOHelper .

szFormatVersion
String

'ndaki Biçim sürümünü içeren null ile sonlandırılmış dize.

szDescription
String

'ndaki Açıklamayı içeren null ile sonlandırılmış dize.

ppIVsPropertyFileOut
IVsPropertyFileOut

dışı Bir nesne işaretçisinin işaretçisi IVsPropertyFileOut .

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

COM Imzası

Vsshell. IDL dosyasından:

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  
);  

Şunlara uygulanır