Szerkesztés

Megosztás a következőn keresztül:


DynamicILInfo.SetLocalSignature Method

Definition

Sets the local variable signature that describes the layout of local variables for the associated dynamic method.

Overloads

SetLocalSignature(Byte[])

Sets the local variable signature that describes the layout of local variables for the associated dynamic method.

SetLocalSignature(Byte*, Int32)

Sets the local variable signature that describes the layout of local variables for the associated dynamic method.

SetLocalSignature(Byte[])

Source:
DynamicILGenerator.cs
Source:
DynamicILGenerator.cs
Source:
DynamicILGenerator.cs

Sets the local variable signature that describes the layout of local variables for the associated dynamic method.

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

Parameters

localSignature
Byte[]

An array that contains the layout of local variables for the associated DynamicMethod.

Remarks

The local variable signature describes the layout of a method's local variables. To simplify construction of the local variable signature, use the static (Shared in Visual Basic) SignatureHelper.GetLocalVarSigHelper method to get a SignatureHelper for the local signature.

For information on local variable signatures, see the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics". For more information, see ECMA 335 Common Language Infrastructure (CLI).

Applies to

SetLocalSignature(Byte*, Int32)

Source:
DynamicILGenerator.cs
Source:
DynamicILGenerator.cs
Source:
DynamicILGenerator.cs

Important

This API is not CLS-compliant.

CLS-compliant alternative
System.Reflection.Emit.DynamicILInfo.SetLocalSignature(Byte[])

Sets the local variable signature that describes the layout of local variables for the associated dynamic method.

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

Parameters

localSignature
Byte*

An array that contains the layout of local variables for the associated DynamicMethod.

signatureSize
Int32

The number of bytes in the signature.

Attributes

Exceptions

localSignature is null and signatureSize is greater than 0.

signatureSize is less than 0.

Remarks

The local variable signature describes the layout of a method's local variables. To simplify construction of the local variable signature, use the static (Shared in Visual Basic) SignatureHelper.GetLocalVarSigHelper method to get a SignatureHelper for the local signature.

For information on local variable signatures, see the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics". For more information, see ECMA 335 Common Language Infrastructure (CLI).

Applies to