共用方式為


IAppxManifestDesignerService2 Interface

Definition

Provides programmatic access to a project's .appxmanifext file. You can use it to open a DocData object provided by the Manifest Designer, ensure that it is registered in the running document table (RDT), and return a document handle object that implements two interfaces: IVsDocumentLockHolder and IVsInvisibleEditor. This forces any existing document window to close, and causes the returned document handle to hold a RDT_EditLock. When you need to keep the document handle for longer periods of time, cast it to IVsInvisibleEditor and use GetDocData to get a pointer to a fresh object model. When finished with the document handle, always call IVsDocumentLockHolder.CloseDocumentHolder(), usually passing (uint)__FRAMECLOSE.FRAMECLOSE_SaveIfDirty as the save option.

public interface class IAppxManifestDesignerService2 : Microsoft::VisualStudio::Shell::Interop::IAppxManifestDesignerService
public interface class IAppxManifestDesignerService2 : Microsoft::VisualStudio::Shell::Interop::IAppxManifestDesignerService
__interface IAppxManifestDesignerService2 : Microsoft::VisualStudio::Shell::Interop::IAppxManifestDesignerService
[System.Runtime.InteropServices.Guid("11FC8AAC-1EE7-455E-9DBC-9A57CF727BC7")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IAppxManifestDesignerService2 : Microsoft.VisualStudio.Shell.Interop.IAppxManifestDesignerService
[<System.Runtime.InteropServices.Guid("11FC8AAC-1EE7-455E-9DBC-9A57CF727BC7")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IAppxManifestDesignerService2 = interface
    interface IAppxManifestDesignerService
Public Interface IAppxManifestDesignerService2
Implements IAppxManifestDesignerService
Derived
Attributes
Implements

Methods

OpenAppxManifestDesigner(IVsDocumentLockHolder, AppxManifestDesignerTab)

Opens the .appxmanifest designer.

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.

Applies to