次の方法で共有


IAppxManifestDesignerService2.OpenAppxManifestDocument Method

Definition

Overloads

OpenAppxManifestDocument(Object, IVsDocumentLockHolder, IAppxManifestDocument)

Opens the .appxmanifest file in the specified project.

OpenAppxManifestDocument(Object, UInt32, IVsDocumentLockHolder, IAppxManifestDocument2)

Opens the .appxmanifest file in the specified file.

OpenAppxManifestDocument(Object, IVsDocumentLockHolder, IAppxManifestDocument)

Opens the .appxmanifest file in the specified project.

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

Parameters

project
Object

A pointer to the project. The object can be either an IVsHierarchy or a DTE.

documentHandle
IVsDocumentLockHolder

The document lock.

appxManifestDocument
IAppxManifestDocument

The document.

Returns

The HRESULT.

Implements

Applies to

OpenAppxManifestDocument(Object, UInt32, IVsDocumentLockHolder, IAppxManifestDocument2)

Opens the .appxmanifest file in the specified file.

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

Parameters

Project
Object

The project.

forceSaveAndClose
UInt32

true if an open copy of the file should be saved, otherwise false.

documentHandle
IVsDocumentLockHolder

The document lock.

appxManifestDocument
IAppxManifestDocument2

The document.

Returns

The HRESULT.

Remarks

Any open copies of the .appxmanifest file in any editor are forced to close. When this happens, the saving behavior is controlled by the forceSaveAndClose parameter.

Applies to