MethodBuilder.SetMarshal(UnmanagedMarshal) Método

Definição

Cuidado

An alternate API is available: Emit the MarshalAs custom attribute instead. http://go.microsoft.com/fwlink/?linkid=14202

Define informações de marshaling para o tipo de retorno desse método.

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

Parâmetros

unmanagedMarshal
UnmanagedMarshal

Marshaling de informações para o tipo de retorno deste método.

Atributos

Exceções

O tipo de contenção foi criado anteriormente usando CreateType().

-ou-

Para o método atual, a IsGenericMethod propriedade é true, mas a IsGenericMethodDefinition propriedade é false.

Aplica-se a