ParameterBuilder.SetMarshal Method (UnmanagedMarshal)

 
Note: This API is now obsolete.

Specifies the marshaling for this parameter.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[ObsoleteAttribute("An alternate API is available: Emit the MarshalAs custom attribute instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public virtual void SetMarshal(
	UnmanagedMarshal unmanagedMarshal
)

Parameters

unmanagedMarshal
Type: System.Reflection.Emit.UnmanagedMarshal

The marshaling information for this parameter.

Exception Condition
ArgumentNullException

unmanagedMarshal is null.

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

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

.NET Framework
Available since 1.1
Return to top
Show: