IAppxManifestProperties::GetBoolValue method

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

Syntax


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

Parameters

name [in]

Type: LPCWSTR

The name of the Boolean element. Valid values include:

"Framework"

"ResourcePackage" for Windows 8.1 and later

value [out, retval]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

AppxPackaging.h

IDL

AppxPackaging.idl

IID

IID_IAppxManifestProperties is defined as 03faf64d-f26f-4b2c-aaf7-8fe7789b8bca

See also

IAppxManifestProperties

 

 

Show: