共用方式為


Library 建構函式

定義

多載

Library(String, String, String, String, IEnumerable<Dependency>, Boolean)

使用指定的連結庫屬性,初始化 Library 類別的新實例。

Library(String, String, String, String, IEnumerable<Dependency>, Boolean, String, String)

使用指定的連結庫屬性和路徑,初始化 Library 類別的新實例。

Library(String, String, String, String, IEnumerable<Dependency>, Boolean, String, String, String)

使用指定的連結庫屬性、路徑和運行時間存放區指令清單,初始化 Library 類別的新實例。

Library(String, String, String, String, IEnumerable<Dependency>, Boolean)

來源:
Library.cs
來源:
Library.cs
來源:
Library.cs
來源:
Library.cs
來源:
Library.cs

使用指定的連結庫屬性,初始化 Library 類別的新實例。

public:
 Library(System::String ^ type, System::String ^ name, System::String ^ version, System::String ^ hash, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::Dependency> ^ dependencies, bool serviceable);
public Library (string type, string name, string version, string? hash, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable);
new Microsoft.Extensions.DependencyModel.Library : string * string * string * string * seq<Microsoft.Extensions.DependencyModel.Dependency> * bool -> Microsoft.Extensions.DependencyModel.Library
Public Sub New (type As String, name As String, version As String, hash As String, dependencies As IEnumerable(Of Dependency), serviceable As Boolean)

參數

type
String

連結庫的類型。

name
String

連結庫的名稱。

version
String

連結庫的版本。

hash
String

連結庫套件的哈希。

dependencies
IEnumerable<Dependency>

連結庫的相依性。

serviceable
Boolean

連結庫是否可服務。

適用於

Library(String, String, String, String, IEnumerable<Dependency>, Boolean, String, String)

來源:
Library.cs
來源:
Library.cs
來源:
Library.cs
來源:
Library.cs
來源:
Library.cs

使用指定的連結庫屬性和路徑,初始化 Library 類別的新實例。

public:
 Library(System::String ^ type, System::String ^ name, System::String ^ version, System::String ^ hash, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::Dependency> ^ dependencies, bool serviceable, System::String ^ path, System::String ^ hashPath);
public Library (string type, string name, string version, string? hash, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable, string? path, string? hashPath);
new Microsoft.Extensions.DependencyModel.Library : string * string * string * string * seq<Microsoft.Extensions.DependencyModel.Dependency> * bool * string * string -> Microsoft.Extensions.DependencyModel.Library
Public Sub New (type As String, name As String, version As String, hash As String, dependencies As IEnumerable(Of Dependency), serviceable As Boolean, path As String, hashPath As String)

參數

type
String

連結庫的類型。

name
String

連結庫的名稱。

version
String

連結庫的版本。

hash
String

連結庫套件的哈希。

dependencies
IEnumerable<Dependency>

連結庫的相依性。

serviceable
Boolean

連結庫是否可服務。

path
String

連結庫套件的路徑。

hashPath
String

連結庫套件的哈希路徑。

例外狀況

type、 或 nameversionnull 或空字串。

dependencies null

適用於

Library(String, String, String, String, IEnumerable<Dependency>, Boolean, String, String, String)

來源:
Library.cs
來源:
Library.cs
來源:
Library.cs
來源:
Library.cs
來源:
Library.cs

使用指定的連結庫屬性、路徑和運行時間存放區指令清單,初始化 Library 類別的新實例。

public Library (string type, string name, string version, string? hash, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable, string? path, string? hashPath, string? runtimeStoreManifestName = default);
new Microsoft.Extensions.DependencyModel.Library : string * string * string * string * seq<Microsoft.Extensions.DependencyModel.Dependency> * bool * string * string * string -> Microsoft.Extensions.DependencyModel.Library
Public Sub New (type As String, name As String, version As String, hash As String, dependencies As IEnumerable(Of Dependency), serviceable As Boolean, path As String, hashPath As String, Optional runtimeStoreManifestName As String = Nothing)

參數

type
String

連結庫的類型。

name
String

連結庫的名稱。

version
String

連結庫的版本。

hash
String

連結庫套件的哈希。

dependencies
IEnumerable<Dependency>

連結庫的相依性。

serviceable
Boolean

連結庫是否可服務。

path
String

連結庫套件的路徑。

hashPath
String

連結庫套件的哈希路徑。

runtimeStoreManifestName
String

連結庫的運行時間存放區指令清單名稱。

例外狀況

type、 或 nameversionnull 或空字串。

dependencies null

適用於