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 System Requirements.

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Versions: Available since 1.0

See also