Metoda IPersistXMLFragment.InitNew — (Guid, UInt32)
Inicjuje właściwości projektu rozszerzenia i inne dane niezależne od kompilacji.
Przestrzeń nazw: Microsoft.VisualStudio.Shell.Interop
Zestaw: Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Składnia
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
Parametry
guidFlavor
Type: System.Guid[in] Określa identyfikator GUID podtypu projektu.
storage
Type: System.UInt32[in] Określa typ magazynu dla plików trwałość. Wartości są pobierane z _PersistStorageType wyliczenia. Typ pliku jest plik projektu (.vsproj lub .vbproj) lub plik użytkownika (. vsproj.user lub. vbproj.user).
Wartość zwracana
Type: System.Int32
Jeśli metoda zakończy się pomyślnie, zwraca S_OK. Jeśli nie, zwraca kod błędu.
Uwagi
Podpis COM
Z vsshell80.idl:
HRESULT IPersistXMLFragment::InitNew(
[in] REFGUID guidFlavor,
[in] PersistStorageType storage
);
Zobacz też
Interfejs IPersistXMLFragment
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop
Powrót do początku