Edit

Share via


AssemblyNameInfo Constructor

Definition

Initializes a new instance of the AssemblyNameInfo class.

public AssemblyNameInfo (string name, Version? version = default, string? cultureName = default, System.Reflection.AssemblyNameFlags flags = System.Reflection.AssemblyNameFlags.None, System.Collections.Immutable.ImmutableArray<byte> publicKeyOrToken = default);
new System.Reflection.Metadata.AssemblyNameInfo : string * Version * string * System.Reflection.AssemblyNameFlags * System.Collections.Immutable.ImmutableArray<byte> -> System.Reflection.Metadata.AssemblyNameInfo
Public Sub New (name As String, Optional version As Version = Nothing, Optional cultureName As String = Nothing, Optional flags As AssemblyNameFlags = System.Reflection.AssemblyNameFlags.None, Optional publicKeyOrToken As ImmutableArray(Of Byte) = Nothing)

Parameters

name
String

The simple name of the assembly.

version
Version

The version of the assembly.

cultureName
String

The name of the culture associated with the assembly.

flags
AssemblyNameFlags

The attributes of the assembly.

publicKeyOrToken
ImmutableArray<Byte>

The public key or its token. Set flags to PublicKey when it's public key.

Exceptions

name is null.

Applies to