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: ObjectThe project.
forceSaveAndClose
Type: UInt32true if an open copy of the file should be saved, otherwise false.
documentHandle
Type: Microsoft.VisualStudio.Shell.Interop.IVsDocumentLockHolder%The document lock.
appxManifestDocument
Type: Microsoft.VisualStudio.Shell.Interop.IAppxManifestDocument2%The document.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IAppxManifestDesignerService2 Interface