CompilationLibrary 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CompilationLibrary(String, String, String, String, IEnumerable<String>, IEnumerable<Dependency>, Boolean) |
使用指定的函式庫屬性初始化該 CompilationLibrary 類別的新實例。 |
| CompilationLibrary(String, String, String, String, IEnumerable<String>, IEnumerable<Dependency>, Boolean, String, String) |
使用指定的函式庫屬性與路徑初始化該 CompilationLibrary 類別的新實例。 |
CompilationLibrary(String, String, String, String, IEnumerable<String>, IEnumerable<Dependency>, Boolean)
使用指定的函式庫屬性初始化該 CompilationLibrary 類別的新實例。
public:
CompilationLibrary(System::String ^ type, System::String ^ name, System::String ^ version, System::String ^ hash, System::Collections::Generic::IEnumerable<System::String ^> ^ assemblies, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::Dependency> ^ dependencies, bool serviceable);
public CompilationLibrary(string type, string name, string version, string? hash, System.Collections.Generic.IEnumerable<string> assemblies, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable);
new Microsoft.Extensions.DependencyModel.CompilationLibrary : string * string * string * string * seq<string> * seq<Microsoft.Extensions.DependencyModel.Dependency> * bool -> Microsoft.Extensions.DependencyModel.CompilationLibrary
Public Sub New (type As String, name As String, version As String, hash As String, assemblies As IEnumerable(Of String), dependencies As IEnumerable(Of Dependency), serviceable As Boolean)
參數
- type
- String
圖書館的類型。
- name
- String
圖書館的名字。
- version
- String
圖書館的版本。
- hash
- String
圖書館套件的雜湊值。
- assemblies
- IEnumerable<String>
圖書館的集會。
- dependencies
- IEnumerable<Dependency>
圖書館的附屬機構。
- serviceable
- Boolean
圖書館是否可用。
例外狀況
type、、name或是versionnull空字串。
dependencies 或 assemblies 為 null。
適用於
CompilationLibrary(String, String, String, String, IEnumerable<String>, IEnumerable<Dependency>, Boolean, String, String)
使用指定的函式庫屬性與路徑初始化該 CompilationLibrary 類別的新實例。
public:
CompilationLibrary(System::String ^ type, System::String ^ name, System::String ^ version, System::String ^ hash, System::Collections::Generic::IEnumerable<System::String ^> ^ assemblies, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::Dependency> ^ dependencies, bool serviceable, System::String ^ path, System::String ^ hashPath);
public CompilationLibrary(string type, string name, string version, string? hash, System.Collections.Generic.IEnumerable<string> assemblies, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable, string? path, string? hashPath);
new Microsoft.Extensions.DependencyModel.CompilationLibrary : string * string * string * string * seq<string> * seq<Microsoft.Extensions.DependencyModel.Dependency> * bool * string * string -> Microsoft.Extensions.DependencyModel.CompilationLibrary
Public Sub New (type As String, name As String, version As String, hash As String, assemblies As IEnumerable(Of String), dependencies As IEnumerable(Of Dependency), serviceable As Boolean, path As String, hashPath As String)
參數
- type
- String
圖書館的類型。
- name
- String
圖書館的名字。
- version
- String
圖書館的版本。
- hash
- String
圖書館套件的雜湊值。
- assemblies
- IEnumerable<String>
圖書館的集會。
- dependencies
- IEnumerable<Dependency>
圖書館的附屬機構。
- serviceable
- Boolean
圖書館是否可用。
- path
- String
圖書館套件的路徑。
- hashPath
- String
函式庫套件的雜湊路徑。
例外狀況
type、、name或是versionnull空字串。
dependencies 或 assemblies 為 null。