System.Reflection.Emit.ParameterBuilder.SetMarshal Method

Specifies the marshaling for this parameter.

Syntax

[System.Obsolete("An alternate API is available: Emit the MarshalAs custom attribute instead.")]
public virtual void SetMarshal (UnmanagedMarshal unmanagedMarshal)

Parameters

unmanagedMarshal
The marshaling information for this parameter.

Remarks

This method should throw the following exception but currently does not:

InvalidOperationException if the containing type has been created using TypeBuilder.CreateType().

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0