DynamicILInfo.SetExceptions Metod

Definition

Anger undantagsmetadata för den associerade dynamiska metoden.

Överlagringar

Name Description
SetExceptions(Byte[])

Anger undantagsmetadata för den associerade dynamiska metoden.

SetExceptions(Byte*, Int32)

Anger undantagsmetadata för den associerade dynamiska metoden.

SetExceptions(Byte[])

Anger undantagsmetadata för den associerade dynamiska metoden.

public:
 void SetExceptions(cli::array <System::Byte> ^ exceptions);
public void SetExceptions(byte[] exceptions);
member this.SetExceptions : byte[] -> unit
Public Sub SetExceptions (exceptions As Byte())

Parametrar

exceptions
Byte[]

En matris som innehåller undantagsmetadata.

Kommentarer

Undantagsmetadata för en metod definierar platsen och storleken på alla try, catch, finally, filter och felblock. Information om layouten för dessa metadata finns i CLI-dokumentationen (Common Language Infrastructure), särskilt "Partition II: Metadata Definition and Semantics". Mer information finns i ECMA 335 Common Language Infrastructure (CLI).

Gäller för

SetExceptions(Byte*, Int32)

Viktigt!

Detta API uppfyller inte CLS.

Alternativ som uppfyller CLS
System.Reflection.Emit.DynamicILInfo.SetExceptions(Byte[])

Anger undantagsmetadata för den associerade dynamiska metoden.

public:
 void SetExceptions(System::Byte* exceptions, int exceptionsSize);
[System.CLSCompliant(false)]
public void SetExceptions(byte* exceptions, int exceptionsSize);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public void SetExceptions(byte* exceptions, int exceptionsSize);
[<System.CLSCompliant(false)>]
member this.SetExceptions : nativeptr<byte> * int -> unit
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
member this.SetExceptions : nativeptr<byte> * int -> unit

Parametrar

exceptions
Byte*

En pekare till en bytematris som innehåller undantagsmetadata.

exceptionsSize
Int32

Antalet byte med undantagsmetadata.

Attribut

Undantag

exceptions är null och exceptionsSize är större än 0.

exceptionsSize är mindre än 0.

Kommentarer

Undantagsmetadata för en metod definierar platsen och storleken på alla try, catch, finally, filter och felblock. Information om layouten för dessa metadata finns i CLI-dokumentationen (Common Language Infrastructure), särskilt "Partition II: Metadata Definition and Semantics" och "Partition III: CIL Instruction Set". Mer information finns i ECMA 335 Common Language Infrastructure (CLI).

Gäller för