Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IMetaDataAssemblyEmit::SetAssemblyRefProps Method

Modifies the specified AssemblyRef metadata structure.

HRESULT SetAssemblyRefProps (
    [in] mdAssemblyRef              ar,
    [in] const void                 *pbPublicKeyOrToken,
    [in] ULONG                      cbPublicKeyOrToken,
    [in] LPCWSTR                    szName, 
    [in] const ASSEMBLYMETADATA     *pMetaData, 
    [in] const void                 *pbHashValue,
    [in] ULONG                      cbHashValue,
    [in] DWORD                      dwAssemblyRefFlags


[in] The metadata token that specifies the AssemblyRef metadata structure to be modified.


[in] The public key of the publisher of the referenced assembly.


[in] The size in bytes of pbPublicKeyOrToken.


[in] The human-readable text name of the assembly.


[in] A pointer to an ASSEMBLYMETADATA instance that contains the version, platform, and locale information for the assembly.


[in] A pointer to the hash data associated with the assembly.


[in] The size in bytes of pbHashValue.


[in] A bitwise combination of AssemblyRefFlags values that specify attributes of the referenced assembly.

To create an AssemblyRef metadata structure, use the IMetaDataAssemblyEmit::DefineAssemblyRef method.

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Versions: 4.6 RC, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

© 2015 Microsoft