IAssemblyName::SetProperty method (winsxs.h)

The SetProperty method adds a name-value pair to the side-by-side assembly name. This method can change or delete the value of an existing name-value pair.

Syntax

HRESULT SetProperty(
  [in]           DWORD  PropertyId,
  [in]           LPVOID pvProperty,
  [in, optional] DWORD  cbProperty
);

Parameters

[in] PropertyId

A property ID that represents the name-value pair. Valid property IDs are ASM_NAME enumeration values.

[in] pvProperty

A pointer to a buffer that contains the value of the name-value pair.

[in, optional] cbProperty

The size in bytes of the buffer specified by pvProperty. Set the value of this parameter to zero to remove the name-value pair from the assembly name.

Return value

This method can return one of these values.

Return value Description
S_OK
The method succeeded.
S_FALSE
The method did not succeed.
E_UNEXPECTED
The method did not succeed. The SetProperty method was called after the Finalize method.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header winsxs.h
DLL Sxs.dll

See also

IAssemblyName