RuntimeLibrary 构造函数
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
RuntimeLibrary(String, String, String, String, IReadOnlyList<RuntimeAssetGroup>, IReadOnlyList<RuntimeAssetGroup>, IEnumerable<ResourceAssembly>, IEnumerable<Dependency>, Boolean)
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
使用指定的库属性初始化 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
。
适用于
.NET 9 和其他版本
产品 | 版本 |
---|---|
.NET | 6, 7, 8, 9 |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 |
RuntimeLibrary(String, String, String, String, IReadOnlyList<RuntimeAssetGroup>, IReadOnlyList<RuntimeAssetGroup>, IEnumerable<ResourceAssembly>, IEnumerable<Dependency>, Boolean, String, String)
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
使用指定的库属性和路径初始化 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
。
适用于
.NET 9 和其他版本
产品 | 版本 |
---|---|
.NET | 6, 7, 8, 9 |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 |
RuntimeLibrary(String, String, String, String, IReadOnlyList<RuntimeAssetGroup>, IReadOnlyList<RuntimeAssetGroup>, IEnumerable<ResourceAssembly>, IEnumerable<Dependency>, Boolean, String, String, String)
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
- Source:
- RuntimeLibrary.cs
初始化新的 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
。
适用于
.NET 9 和其他版本
产品 | 版本 |
---|---|
.NET | 6, 7, 8, 9 |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 |