IAppxManifestProperties::GetStringValue method
Gets the value of the specified string element in the properties section.
Syntax
HRESULT GetStringValue( [in] LPCWSTR name, [out, retval] LPWSTR *value );
Parameters
- name [in]
-
Type: LPCWSTR
The name of the string element. Valid values include:
"Description"
"DisplayName"
"Logo"
"PublisherDisplayName"
- value [out, retval]
-
Type: LPWSTR*
The value of the specified element.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If a valid string property with this name is not defined in the manifest, this method returns E_INVALIDARG and value receives a null string.
The caller must free the memory allocated for value using the CoTaskMemFree function.
Examples
For an example, see Quickstart: Read app package manifest info.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IAppxManifestProperties is defined as 03faf64d-f26f-4b2c-aaf7-8fe7789b8bca |
See also