Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Creates a definition for a generic type parameter, and gets a token to that generic type parameter.
Syntax
HRESULT DefineGenericParam (
[in] mdToken tk,
[in] ULONG ulParamSeq,
[in] DWORD dwParamFlags,
[in] LPCWSTR szname,
[in] DWORD reserved,
[in] mdToken rtkConstraints[],
[out] mdGenericParam *pgp
);
Parameters
tk
[in] An mdTypeDef or mdMethodDef token that represents the method or constructor for which to define a generic parameter.
ulParamSeq
[in] The index of the generic parameter.
dwParamFlags
[in] A value of the CorGenericParamAttr enumeration that describes the type for the generic parameter.
szname
[in] The name of the parameter.
reserved
[in] This parameter is reserved for future extensibility.
rtkConstraints
[in] A zero-terminated array of type constraints. Array members must be an mdTypeDef, mdTypeRef, or mdTypeSpec metadata token.
pgp
[out] A token that represents the generic parameter.
Requirements
Platforms: See .NET supported operating systems.
Header: Cor.h
Library: CorGuids.lib
.NET versions: Available since .NET Framework 2.0