IMetaDataEmit2::SetGenericParamProps Method

Sets property values for the generic parameter definition referenced by the specified token.

Syntax

HRESULT SetGenericParamProps (  
    [in] mdGenericParam   gp,
    [in] DWORD            dwParamFlags,
    [in] LPCWSTR          szName,
    [in] DWORD            reserved,
    [in] mdToken          rtkConstraints[]  
);  

Parameters

gp
[in] The token for the generic parameter definition for which to set values.

dwParamFlags
[in] A value of the CorGenericParamAttr enumeration that describes the type for the generic parameter.

szName
[in] Optional. The name of the parameter for which to set values.

reserved
[in] Reserved for future extensibility.

rtkConstraints
[in] Optional. A zero-terminated array of type constraints. Array members must be an mdTypeDef, mdTypeRef, or mdTypeSpec metadata token.

Requirements

Platforms: See System Requirements.

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Versions: Available since 1.0

See also