Edit

Share via


IMetaDataEmit::SetFieldMarshal Method

Sets the PInvoke marshalling information for the field, method return, or method parameter referenced by the specified token.

Syntax

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 supported operating systems.

Header: Cor.h

Library: CorGuids.lib

See also