MethodBuilder.SetMarshal(UnmanagedMarshal) Méthode

Définition

Attention

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

Définit les informations de marshaling pour le type de retour de cette méthode.

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)

Paramètres

unmanagedMarshal
UnmanagedMarshal

Informations de marshaling pour le type de retour de cette méthode.

Attributs

Exceptions

Le type conteneur a été créé précédemment à l’aide CreateType()de .

- ou -

Pour la méthode actuelle, la IsGenericMethod propriété est true, mais la IsGenericMethodDefinition propriété est false.

S’applique à