IMetaDataEmit::SetFieldMarshal Method
Sets the PInvoke marshaling information for the field, method return, or method parameter referenced by the specified token.
HRESULT SetFieldMarshal (
[in] mdToken tk,
[in] PCCOR_SIGNATURE pvNativeType,
[in] ULONG cbNativeType
);
Parameters
tk
[in] The token for target data item. This is either a mdFieldDef or a mdParamDef token.pvNativeType
[in] The signature for unmanaged type.cbNativeType
[in] The count of bytes in pvNativeType.
Requirements
Platforms: See .NET Framework System Requirements.
Header: Cor.h
Library: Used as a resource in MSCorEE.dll
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0