Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an ExportedType structure containing metadata for the specified exported type, and returns the associated metadata token.
Syntax
HRESULT DefineExportedType (
[in] LPCWSTR szName,
[in] mdToken tkImplementation,
[in] mdTypeDef tkTypeDef,
[in] DWORD dwExportedTypeFlags,
[out] mdExportedType *pmdct
);
Parameters
szName
[in] The name of type to be exported. For version 1.1 of the common language runtime, the name of the exported type must exactly match the name given in the TypeDef for the type.
tkImplementation
[in] A token specifying where the exported type is implemented. The valid values and their associated meanings are:
mdFileThe type is implemented in a different file within this assembly.mdAssemblyRefThe type is implemented in a different assembly.mdExportedTYpeThe type is nested within some other type.mdFileNilThe type is in the same file as the manifest and is not a nested type.
tkTypeDef
[in] A token to the metadata that specifies the type to be exported. This value is entered in the TypeDef table in the file that implements the type and is relevant only if that file is in this assembly.
dwExportedTypeFlags
[in] A bitwise combination of CorTypeAttr enumeration values that define the property settings for the exported type.
pmdct
[out] A pointer to the returned metadata token that indicates the exported type.
Remarks
An ExportedType metadata structure must be defined for each type that is exposed by this assembly and that is implemented in a module other than the one containing the manifest.
Requirements
Platform: See .NET supported operating systems.
Header: Cor.h
Library: CorGuids.lib