Share via


ParameterBuilder.SetMarshal(UnmanagedMarshal) Metoda

Definice

Upozornění

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

Určuje zařazování pro tento parametr.

public:
 virtual void SetMarshal(System::Reflection::Emit::UnmanagedMarshal ^ unmanagedMarshal);
public virtual 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 virtual void SetMarshal (System.Reflection.Emit.UnmanagedMarshal unmanagedMarshal);
abstract member SetMarshal : System.Reflection.Emit.UnmanagedMarshal -> unit
override 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")>]
abstract member SetMarshal : System.Reflection.Emit.UnmanagedMarshal -> unit
override this.SetMarshal : System.Reflection.Emit.UnmanagedMarshal -> unit
Public Overridable Sub SetMarshal (unmanagedMarshal As UnmanagedMarshal)

Parametry

unmanagedMarshal
UnmanagedMarshal

Informace o zařazování pro tento parametr

Atributy

Výjimky

unmanagedMarshal je null.

Poznámky

Tato metoda by měla vyvolat následující výjimku, ale v současné době ne:

InvalidOperationException pokud byl obsahující typ vytvořen pomocí TypeBuilder.CreateType().

Platí pro