Bagikan melalui


ParameterBuilder.SetMarshal(UnmanagedMarshal) Metode

Definisi

Perhatian

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

Menentukan marshaling untuk parameter ini.

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)

Parameter

unmanagedMarshal
UnmanagedMarshal

Informasi marshaling untuk parameter ini.

Atribut

Pengecualian

unmanagedMarshaladalah null.

Keterangan

Metode ini harus melemparkan pengecualian berikut tetapi saat ini tidak:

InvalidOperationException jika jenis yang berisi telah dibuat menggunakan TypeBuilder.CreateType().

Berlaku untuk