共用方式為


IAppxManifestDocument2 Interface

Definition

Provides an object model for the app manifest of the current project. It is implemented by the DocData object of the app manifest designer.

public interface class IAppxManifestDocument2 : Microsoft::VisualStudio::Shell::Interop::IAppxManifestDocument
public interface class IAppxManifestDocument2 : Microsoft::VisualStudio::Shell::Interop::IAppxManifestDocument
__interface IAppxManifestDocument2 : Microsoft::VisualStudio::Shell::Interop::IAppxManifestDocument
[System.Runtime.InteropServices.Guid("B28888A0-8855-4083-B4D6-A91BDFD452EE")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable)]
public interface IAppxManifestDocument2 : Microsoft.VisualStudio.Shell.Interop.IAppxManifestDocument
[System.Runtime.InteropServices.Guid("B28888A0-8855-4083-B4D6-A91BDFD452EE")]
public interface IAppxManifestDocument2 : Microsoft.VisualStudio.Shell.Interop.IAppxManifestDocument
[<System.Runtime.InteropServices.Guid("B28888A0-8855-4083-B4D6-A91BDFD452EE")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable)>]
type IAppxManifestDocument2 = interface
    interface IAppxManifestDocument
[<System.Runtime.InteropServices.Guid("B28888A0-8855-4083-B4D6-A91BDFD452EE")>]
type IAppxManifestDocument2 = interface
    interface IAppxManifestDocument
Public Interface IAppxManifestDocument2
Implements IAppxManifestDocument
Attributes
Implements

Remarks

OpenAppxManifestDocument can be used to programmatically (invisibly) open a project's app manifest and return an object implementing this interface.

Properties

ApplicationStartPage

Gets or sets the application start page.

ApplicationToastCapable

Gets or sets the AppToastCapability.

Capabilities

Gets a list of all capabilities currently declared in the manifest, which may include both standard capabilities and device capabilities.

OSMaxVersionTested

Gets or sets the highest operating system tested, for example 6.3.

OSMinVersion

Gets or sets the minimum operating system supported (such as 6.3).

PackageVersion

Gets or sets the package version.

StandardCapabilities

Gets the fixed list of standard capabilities.

Methods

AddCapability(String)

Adds the specified capability to the manifest if it is not already present.

GetFileOpenPickerExtension(String, String, String, String, IAppxFileOpenPickerExtension)

Gets the File Open Picker extension.

GetSearchExtension(String, String, String, String)

Gets the Search extension.

GetShareExtension(String, String, String, String, IAppxShareExtension)

Gets the Share extension.

HasCapability(String)

Detects if the specified capability is currently declared in the manifest.

MapCapabilitySid(String, String, String)

Produces a capability identifier and a localized name from the specified capability security identifier (SID), such as "S-1-15-3-1" or "S-1-15-3-BFA794E4-F964-4FDB-90F6-51056BFE4B44".

RemoveCapability(String)

Removes the specified capability from the manifest if it is currently present.

RemoveFileOpenPickerExtension()

Removes the File Open Picker extension.

RemoveSearchExtension()

Removes the Search extension.

RemoveShareExtension()

Removes the share extension.

SetFileOpenPickerExtension(String, String, String, String)

Sets the File Open Picker extension.

SetSearchExtension(String, String, String, String)

Sets the Search extension.

SetShareExtension(String, String, String, String)

Sets the Share extension.

Applies to