IPersistXMLFragment.InitNew Yöntem (Guid, UInt32)
Proje uzantısı özellikleri ve diğer yapı bağımsız veri başlatır.
Ad Alanı: Microsoft.VisualStudio.Shell.Interop
Derleme: Microsoft.VisualStudio.Shell.Interop.8.0 (Microsoft.VisualStudio.Shell.Interop.8.0.dll içinde)
Sözdizimi
int InitNew(
[InAttribute] ref Guid guidFlavor,
uint storage
)
int InitNew(
[InAttribute] Guid% guidFlavor,
unsigned int storage
)
abstract InitNew :
guidFlavor:Guid byref *
storage:uint32 -> int
Function InitNew (
<InAttribute> ByRef guidFlavor As Guid,
storage As UInteger
) As Integer
Parametreler
guidFlavor
Type: System.Guid[in] Proje alt GUID belirtir.
storage
Type: System.UInt32[in] Kalıcı dosyaları için kullanılan depolama türünü belirtir. Değerleri öğesinden alınır _PersistStorageType numaralandırması. Proje dosyası (.vsproj veya .vbproj) veya kullanıcı dosyası dosya türüdür (. vsproj.user veya. vbproj.user).
Dönüş Değeri
Type: System.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.
Notlar
COM imza
Vsshell80.idl:
HRESULT IPersistXMLFragment::InitNew(
[in] REFGUID guidFlavor,
[in] PersistStorageType storage
);
Ayrıca bkz.
IPersistXMLFragment Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı
Başa dön