ModuleBuilder.GetSignatureToken Method

Definition

Defines a signature token.

Overloads

GetSignatureToken(Byte[], Int32)

Defines a token for the signature that has the specified character array and signature length.

GetSignatureToken(SignatureHelper)

Defines a token for the signature that is defined by the specified SignatureHelper.

GetSignatureToken(Byte[], Int32)

Defines a token for the signature that has the specified character array and signature length.

C#
public System.Reflection.Emit.SignatureToken GetSignatureToken(byte[] sigBytes, int sigLength);

Parameters

sigBytes
Byte[]

The signature binary large object (BLOB).

sigLength
Int32

The length of the signature BLOB.

Returns

A token for the specified signature.

Exceptions

sigBytes is null.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetSignatureToken(SignatureHelper)

Defines a token for the signature that is defined by the specified SignatureHelper.

C#
public System.Reflection.Emit.SignatureToken GetSignatureToken(System.Reflection.Emit.SignatureHelper sigHelper);

Parameters

sigHelper
SignatureHelper

The signature.

Returns

A token for the defined signature.

Exceptions

sigHelper is null.

Remarks

This method defines a metadata token for the signature described by sigHelper.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1