Share via


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.

  • pvNativeType
    [in] The signature for unmanaged type.

  • cbNativeType
    [in] The count of bytes in pvNativeType.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

IMetaDataEmit Interface

IMetaDataEmit2 Interface