RuntimeLibrary 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RuntimeLibrary(String, String, String, String, IReadOnlyList<RuntimeAssetGroup>, IReadOnlyList<RuntimeAssetGroup>, IEnumerable<ResourceAssembly>, IEnumerable<Dependency>, Boolean)
使用指定的連結庫屬性,初始化 RuntimeLibrary 類別的新實例。
public:
RuntimeLibrary(System::String ^ type, System::String ^ name, System::String ^ version, System::String ^ hash, System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::DependencyModel::RuntimeAssetGroup ^> ^ runtimeAssemblyGroups, System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::DependencyModel::RuntimeAssetGroup ^> ^ nativeLibraryGroups, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::ResourceAssembly ^> ^ resourceAssemblies, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::Dependency> ^ dependencies, bool serviceable);
public RuntimeLibrary (string type, string name, string version, string? hash, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> runtimeAssemblyGroups, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> nativeLibraryGroups, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.ResourceAssembly> resourceAssemblies, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable);
new Microsoft.Extensions.DependencyModel.RuntimeLibrary : string * string * string * string * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> * seq<Microsoft.Extensions.DependencyModel.ResourceAssembly> * seq<Microsoft.Extensions.DependencyModel.Dependency> * bool -> Microsoft.Extensions.DependencyModel.RuntimeLibrary
Public Sub New (type As String, name As String, version As String, hash As String, runtimeAssemblyGroups As IReadOnlyList(Of RuntimeAssetGroup), nativeLibraryGroups As IReadOnlyList(Of RuntimeAssetGroup), resourceAssemblies As IEnumerable(Of ResourceAssembly), dependencies As IEnumerable(Of Dependency), serviceable As Boolean)
參數
- type
- String
連結庫的類型。
- name
- String
連結庫的名稱。
- version
- String
連結庫的版本。
- hash
- String
連結庫套件的哈希。
- runtimeAssemblyGroups
- IReadOnlyList<RuntimeAssetGroup>
連結庫的運行時間元件。
- nativeLibraryGroups
- IReadOnlyList<RuntimeAssetGroup>
連結庫的原生連結庫。
- resourceAssemblies
- IEnumerable<ResourceAssembly>
連結庫的資源元件。
- dependencies
- IEnumerable<Dependency>
連結庫的相依性。
- serviceable
- Boolean
連結庫是否可服務。
例外狀況
type
、 或 name
或 version
是 null
或空字串。
dependencies
、 或 runtimeAssemblyGroups
或 nativeLibraryGroups
或 resourceAssemblies
null
。
適用於
RuntimeLibrary(String, String, String, String, IReadOnlyList<RuntimeAssetGroup>, IReadOnlyList<RuntimeAssetGroup>, IEnumerable<ResourceAssembly>, IEnumerable<Dependency>, Boolean, String, String)
使用指定的連結庫屬性和路徑,初始化 RuntimeLibrary 類別的新實例。
public:
RuntimeLibrary(System::String ^ type, System::String ^ name, System::String ^ version, System::String ^ hash, System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::DependencyModel::RuntimeAssetGroup ^> ^ runtimeAssemblyGroups, System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::DependencyModel::RuntimeAssetGroup ^> ^ nativeLibraryGroups, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::ResourceAssembly ^> ^ resourceAssemblies, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::Dependency> ^ dependencies, bool serviceable, System::String ^ path, System::String ^ hashPath);
public RuntimeLibrary (string type, string name, string version, string? hash, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> runtimeAssemblyGroups, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> nativeLibraryGroups, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.ResourceAssembly> resourceAssemblies, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable, string? path, string? hashPath);
new Microsoft.Extensions.DependencyModel.RuntimeLibrary : string * string * string * string * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> * seq<Microsoft.Extensions.DependencyModel.ResourceAssembly> * seq<Microsoft.Extensions.DependencyModel.Dependency> * bool * string * string -> Microsoft.Extensions.DependencyModel.RuntimeLibrary
Public Sub New (type As String, name As String, version As String, hash As String, runtimeAssemblyGroups As IReadOnlyList(Of RuntimeAssetGroup), nativeLibraryGroups As IReadOnlyList(Of RuntimeAssetGroup), resourceAssemblies As IEnumerable(Of ResourceAssembly), dependencies As IEnumerable(Of Dependency), serviceable As Boolean, path As String, hashPath As String)
參數
- type
- String
連結庫的類型。
- name
- String
連結庫的名稱。
- version
- String
連結庫的版本。
- hash
- String
連結庫套件的哈希。
- runtimeAssemblyGroups
- IReadOnlyList<RuntimeAssetGroup>
連結庫的運行時間元件。
- nativeLibraryGroups
- IReadOnlyList<RuntimeAssetGroup>
連結庫的原生連結庫。
- resourceAssemblies
- IEnumerable<ResourceAssembly>
連結庫的資源元件。
- dependencies
- IEnumerable<Dependency>
連結庫的相依性。
- serviceable
- Boolean
連結庫是否可服務。
- path
- String
連結庫套件的路徑。
- hashPath
- String
連結庫套件的哈希路徑。
例外狀況
type
、 或 name
或 version
是 null
或空字串。
dependencies
、 或 runtimeAssemblyGroups
或 nativeLibraryGroups
或 resourceAssemblies
null
。
適用於
RuntimeLibrary(String, String, String, String, IReadOnlyList<RuntimeAssetGroup>, IReadOnlyList<RuntimeAssetGroup>, IEnumerable<ResourceAssembly>, IEnumerable<Dependency>, Boolean, String, String, String)
初始化新的 RuntimeLibrary。
public:
RuntimeLibrary(System::String ^ type, System::String ^ name, System::String ^ version, System::String ^ hash, System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::DependencyModel::RuntimeAssetGroup ^> ^ runtimeAssemblyGroups, System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::DependencyModel::RuntimeAssetGroup ^> ^ nativeLibraryGroups, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::ResourceAssembly ^> ^ resourceAssemblies, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::Dependency> ^ dependencies, bool serviceable, System::String ^ path, System::String ^ hashPath, System::String ^ runtimeStoreManifestName);
public RuntimeLibrary (string type, string name, string version, string? hash, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> runtimeAssemblyGroups, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> nativeLibraryGroups, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.ResourceAssembly> resourceAssemblies, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable, string? path, string? hashPath, string? runtimeStoreManifestName);
new Microsoft.Extensions.DependencyModel.RuntimeLibrary : string * string * string * string * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> * seq<Microsoft.Extensions.DependencyModel.ResourceAssembly> * seq<Microsoft.Extensions.DependencyModel.Dependency> * bool * string * string * string -> Microsoft.Extensions.DependencyModel.RuntimeLibrary
Public Sub New (type As String, name As String, version As String, hash As String, runtimeAssemblyGroups As IReadOnlyList(Of RuntimeAssetGroup), nativeLibraryGroups As IReadOnlyList(Of RuntimeAssetGroup), resourceAssemblies As IEnumerable(Of ResourceAssembly), dependencies As IEnumerable(Of Dependency), serviceable As Boolean, path As String, hashPath As String, runtimeStoreManifestName As String)
參數
- type
- String
連結庫的類型。
- name
- String
連結庫的名稱。
- version
- String
連結庫的版本。
- hash
- String
連結庫套件的哈希。
- runtimeAssemblyGroups
- IReadOnlyList<RuntimeAssetGroup>
連結庫的運行時間元件。
- nativeLibraryGroups
- IReadOnlyList<RuntimeAssetGroup>
連結庫的原生連結庫。
- resourceAssemblies
- IEnumerable<ResourceAssembly>
連結庫的資源元件。
- dependencies
- IEnumerable<Dependency>
連結庫的相依性。
- serviceable
- Boolean
連結庫是否可服務。
- path
- String
連結庫套件的路徑。
- hashPath
- String
連結庫套件的哈希路徑。
- runtimeStoreManifestName
- String
連結庫的運行時間存放區指令清單名稱。
例外狀況
type
、 或 name
、 或 version
、 或 runtimeAssemblyGroups
或 nativeLibraryGroups
, 或 resourceAssemblies
或 dependencies
null
。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應