MethodBuilder.SetMarshal(UnmanagedMarshal) Metodo

Definizione

Attenzione

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

Imposta le informazioni di marshalling per il tipo restituito di questo metodo.

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)

Parametri

unmanagedMarshal
UnmanagedMarshal

Marshalling delle informazioni per il tipo restituito di questo metodo.

Attributi

Eccezioni

Il tipo contenitore è stato creato in precedenza usando CreateType().

oppure

Per il metodo corrente, la IsGenericMethod proprietà è true, ma la IsGenericMethodDefinition proprietà è false.

Si applica a