ParameterBuilder.SetMarshal(UnmanagedMarshal) Método

Definición

Advertencia

Esta API está ya obsoleta.

Especifica el cálculo de referencias para este parámetro.Specifies the marshaling for this parameter.

public:
 virtual void SetMarshal(System::Reflection::Emit::UnmanagedMarshal ^ unmanagedMarshal);
[System.Obsolete("An alternate API is available: Emit the MarshalAs custom attribute instead.")]
[System.Obsolete("An alternate API is available: Emit the MarshalAs custom attribute instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public virtual void SetMarshal (System.Reflection.Emit.UnmanagedMarshal unmanagedMarshal);
abstract member SetMarshal : System.Reflection.Emit.UnmanagedMarshal -> unit
override this.SetMarshal : System.Reflection.Emit.UnmanagedMarshal -> unit

Parámetros

unmanagedMarshal
UnmanagedMarshal

Cálculo de referencias para este parámetro.The marshaling information for this parameter.

Atributos

Excepciones

unmanagedMarshal es null.unmanagedMarshal is null.

Comentarios

Este método debe producir la excepción siguiente, pero actualmente no:This method should throw the following exception but currently does not:

InvalidOperationException si el tipo contenedor se ha creado mediante TypeBuilder. CreateType ().InvalidOperationException if the containing type has been created using TypeBuilder.CreateType().

Se aplica a