IAppxManifestDesignerService2.OpenAppxManifestDocument Метод

Определение

Перегрузки

OpenAppxManifestDocument(Object, IVsDocumentLockHolder, IAppxManifestDocument)

Открывает файл. appxmanifest в указанном проекте.

OpenAppxManifestDocument(Object, UInt32, IVsDocumentLockHolder, IAppxManifestDocument2)

Открывает файл. appxmanifest в указанном файле.

OpenAppxManifestDocument(Object, IVsDocumentLockHolder, IAppxManifestDocument)

Открывает файл. appxmanifest в указанном проекте.

public:
 int OpenAppxManifestDocument(System::Object ^ project, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsDocumentLockHolder ^ % documentHandle, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IAppxManifestDocument ^ % appxManifestDocument);
public:
 int OpenAppxManifestDocument(Platform::Object ^ project, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsDocumentLockHolder ^ &  documentHandle, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IAppxManifestDocument ^ &  appxManifestDocument);
int OpenAppxManifestDocument(winrt::Windows::Foundation::IInspectable const & project, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsDocumentLockHolder const & & documentHandle, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IAppxManifestDocument const & & appxManifestDocument);
public int OpenAppxManifestDocument (object project, out Microsoft.VisualStudio.Shell.Interop.IVsDocumentLockHolder documentHandle, out Microsoft.VisualStudio.Shell.Interop.IAppxManifestDocument appxManifestDocument);
abstract member OpenAppxManifestDocument : obj * IVsDocumentLockHolder * IAppxManifestDocument -> int
Public Function OpenAppxManifestDocument (project As Object, ByRef documentHandle As IVsDocumentLockHolder, ByRef appxManifestDocument As IAppxManifestDocument) As Integer

Параметры

project
Object

Указатель на проект. Объект может быть либо IVsHierarchy, либо DTE.

documentHandle
IVsDocumentLockHolder

Блокировка документа.

appxManifestDocument
IAppxManifestDocument

Документ.

Возвращаемое значение

Int32

HRESULT.

Реализации

Применяется к

OpenAppxManifestDocument(Object, UInt32, IVsDocumentLockHolder, IAppxManifestDocument2)

Открывает файл. appxmanifest в указанном файле.

public:
 int OpenAppxManifestDocument(System::Object ^ Project, System::UInt32 forceSaveAndClose, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsDocumentLockHolder ^ % documentHandle, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IAppxManifestDocument2 ^ % appxManifestDocument);
public:
 int OpenAppxManifestDocument(Platform::Object ^ Project, unsigned int forceSaveAndClose, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsDocumentLockHolder ^ &  documentHandle, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IAppxManifestDocument2 ^ &  appxManifestDocument);
int OpenAppxManifestDocument(winrt::Windows::Foundation::IInspectable const & Project, unsigned int forceSaveAndClose, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsDocumentLockHolder const & & documentHandle, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IAppxManifestDocument2 const & & appxManifestDocument);
public int OpenAppxManifestDocument (object Project, uint forceSaveAndClose, out Microsoft.VisualStudio.Shell.Interop.IVsDocumentLockHolder documentHandle, out Microsoft.VisualStudio.Shell.Interop.IAppxManifestDocument2 appxManifestDocument);
abstract member OpenAppxManifestDocument : obj * uint32 * IVsDocumentLockHolder * IAppxManifestDocument2 -> int
Public Function OpenAppxManifestDocument (Project As Object, forceSaveAndClose As UInteger, ByRef documentHandle As IVsDocumentLockHolder, ByRef appxManifestDocument As IAppxManifestDocument2) As Integer

Параметры

Project
Object

Проект.

forceSaveAndClose
UInt32

true значение, если необходимо сохранить открытую копию файла; в противном случае — false .

documentHandle
IVsDocumentLockHolder

Блокировка документа.

appxManifestDocument
IAppxManifestDocument2

Документ.

Возвращаемое значение

Int32

HRESULT.

Комментарии

Все открытые копии файла. appxmanifest в любом редакторе принудительно закрываются. В этом случае поведение сохранения управляется forceSaveAndClose параметром.

Применяется к