Share via


IAppxManifestDocument.HasCapability Method

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

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

Syntax

'Declaration
Function HasCapability ( _
    capabilityId As String _
) As Boolean
bool HasCapability(
    string capabilityId
)
bool HasCapability(
    [InAttribute] String^ capabilityId
)
abstract HasCapability : 
        capabilityId:string -> bool
function HasCapability(
    capabilityId : String
) : boolean

Parameters

  • capabilityId
    Type: System.String

    [in] The identifier of the capability.

Return Value

Type: System.Boolean
true if the given capability is currently declared in the manifest.

.NET Framework Security

See Also

Reference

IAppxManifestDocument Interface

Microsoft.VisualStudio.Shell.Interop Namespace