Compartir a través de


IAppxManifestDesignerService2.OpenAppxManifestDocument Method (Object, UInt32, IVsDocumentLockHolder%, IAppxManifestDocument2%)

Opens the .appxmanifest file in the specified file.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)

Syntax

'Declaration
Function OpenAppxManifestDocument ( _
    Project As Object, _
    forceSaveAndClose As UInteger, _
    <OutAttribute> ByRef documentHandle As IVsDocumentLockHolder, _
    <OutAttribute> ByRef appxManifestDocument As IAppxManifestDocument2 _
) As Integer
int OpenAppxManifestDocument(
    Object Project,
    uint forceSaveAndClose,
    out IVsDocumentLockHolder documentHandle,
    out IAppxManifestDocument2 appxManifestDocument
)
int OpenAppxManifestDocument(
    [InAttribute] Object^ Project, 
    [InAttribute] unsigned int forceSaveAndClose, 
    [OutAttribute] IVsDocumentLockHolder^% documentHandle, 
    [OutAttribute] IAppxManifestDocument2^% appxManifestDocument
)
abstract OpenAppxManifestDocument : 
        Project:Object * 
        forceSaveAndClose:uint32 * 
        documentHandle:IVsDocumentLockHolder byref * 
        appxManifestDocument:IAppxManifestDocument2 byref -> int
function OpenAppxManifestDocument(
    Project : Object, 
    forceSaveAndClose : uint, 
    documentHandle : IVsDocumentLockHolder, 
    appxManifestDocument : IAppxManifestDocument2
) : int

Parameters

  • Project
    Type: Object

    The project.

  • forceSaveAndClose
    Type: UInt32

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

Return Value

Type: Int32
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.

.NET Framework Security

See Also

Reference

IAppxManifestDesignerService2 Interface

OpenAppxManifestDocument Overload

Microsoft.VisualStudio.Shell.Interop Namespace