SetMarshal Method

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.")]
public virtual void SetMarshal(
	UnmanagedMarshal unmanagedMarshal


Type: System.Reflection.Emit.UnmanagedMarshal

The marshaling information for this parameter.

Exception Condition

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
© 2015 Microsoft