IAppxManifestProperties::GetBoolValue method (appxpackaging.h)

Gets the value of the specified Boolean element in the properties section.

Syntax

HRESULT GetBoolValue(
  [in]          LPCWSTR name,
  [out, retval] BOOL    *value
);

Parameters

[in] name

Type: LPCWSTR

The name of the Boolean element. Valid values include:

"Framework"

"ResourcePackage" for Windows 8.1 and later

[out, retval] value

Type: BOOL*

The value of the specified Boolean element.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If a valid Boolean property with this name is not defined in the manifest, this method returns E_INVALIDARG and value is FALSE.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header appxpackaging.h

See also

IAppxManifestProperties