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
);

ar

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

pbPublicKeyOrToken

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

cbPublicKeyOrToken

[in] The size in bytes of pbPublicKeyOrToken.

szName

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

pMetaData

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

pbHashValue

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

cbHashValue

[in] The size in bytes of pbHashValue.

dwAssemblyRefFlags

[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

Show:
© 2015 Microsoft