Metoda IPersistXMLFragment.Save — (Guid, UInt32, String, Int32)
System projektu bazowego kieruje podtypu projektu do tworzenia projektu podtyp informacji XML i zapisać je w pliku projektu lub użytkownika.
Przestrzeń nazw: Microsoft.VisualStudio.Shell.Interop
Zestaw: Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Składnia
int Save(
[InAttribute] ref Guid guidFlavor,
uint storage,
out string pbstrXMLFragment,
int fClearDirty
)
int Save(
[InAttribute] Guid% guidFlavor,
unsigned int storage,
[OutAttribute] String^% pbstrXMLFragment,
int fClearDirty
)
abstract Save :
guidFlavor:Guid byref *
storage:uint32 *
pbstrXMLFragment:string byref *
fClearDirty:int -> int
Function Save (
<InAttribute> ByRef guidFlavor As Guid,
storage As UInteger,
<OutAttribute> ByRef pbstrXMLFragment As String,
fClearDirty As Integer
) As Integer
Parametry
guidFlavor
Type: System.Guid[in] Projekt podtyp identyfikatora GUID.
storage
Type: System.UInt32[in] Typ magazynu dla pliku. Wartości z _PersistStorageType wyliczenia. Typ pliku jest plik projektu (.vsproj lub .vbproj) lub plik użytkownika (. vsproj.user lub. vbproj.user).
pbstrXMLFragment
Type: System.String[out] Wskaźnik do ścieżki nowy dokument zawierający XML fragment.
fClearDirty
Type: System.Int32[in] Wskazuje, czy należy wyczyścić flagę zanieczyszczeniu po zakończeniu Zapisz. Jeśli true, powinny być czyszczone flagę. Jeśli false, Flaga powinna pozostać niezmieniona.
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::Save(
[in] REFGUID guidFlavor,
[in] PersistStorageType storage,
[out] BSTR *pbstrXMLFragment,
[in] BOOL fClearDirty
);
Zobacz też
Interfejs IPersistXMLFragment
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop
Powrót do początku