AssemblyIdentity コンストラクター

定義

構成部分から を AssemblyIdentity 構築します。

public AssemblyIdentity (string name, Version version = default, string cultureName = default, System.Collections.Immutable.ImmutableArray<byte> publicKeyOrToken = default, bool hasPublicKey = false, bool isRetargetable = false, System.Reflection.AssemblyContentType contentType = System.Reflection.AssemblyContentType.Default);
public AssemblyIdentity (string? name, Version? version = default, string? cultureName = default, System.Collections.Immutable.ImmutableArray<byte> publicKeyOrToken = default, bool hasPublicKey = false, bool isRetargetable = false, System.Reflection.AssemblyContentType contentType = System.Reflection.AssemblyContentType.Default);
new Microsoft.CodeAnalysis.AssemblyIdentity : string * Version * string * System.Collections.Immutable.ImmutableArray<byte> * bool * bool * System.Reflection.AssemblyContentType -> Microsoft.CodeAnalysis.AssemblyIdentity
Public Sub New (name As String, Optional version As Version = Nothing, Optional cultureName As String = Nothing, Optional publicKeyOrToken As ImmutableArray(Of Byte) = Nothing, Optional hasPublicKey As Boolean = false, Optional isRetargetable As Boolean = false, Optional contentType As AssemblyContentType = System.Reflection.AssemblyContentType.Default)

パラメーター

name
String

アセンブリの簡易名。

version
Version

アセンブリのバージョン。

cultureName
String

アセンブリに関連付けるカルチャの名前。 を表すにはInvariantCulture、null、、Emptyまたは "neutral" (任意の大文字と小文字) を指定します。 名前には、NUL 文字を含まない任意の文字列を指定できます。カルチャ名の合法性は検証されません。

publicKeyOrToken
ImmutableArray<Byte>

アセンブリの公開キーまたは公開キー トークン。

hasPublicKey
Boolean

公開キーを表すかどうかを publicKeyOrToken 示します。

isRetargetable
Boolean

アセンブリが再ターゲット可能かどうかを示します。

contentType
AssemblyContentType

このオブジェクトを比較で処理する方法のバインド モデルを指定します。

例外

hasPublicKey は false で、 publicKeyOrToken 公開キー トークンのサイズ (8 バイト) ではない値が含まれています。

contentType が 列挙体の AssemblyContentType 値ではありません。

適用対象