RuntimeLibrary 构造函数

定义

重载

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 (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);

参数

type
String

库的类型。

name
String

库的名称。

version
String

库的版本。

hash
String

库包的哈希。

runtimeAssemblyGroups
IReadOnlyList<RuntimeAssetGroup>

库的运行时程序集。

nativeLibraryGroups
IReadOnlyList<RuntimeAssetGroup>

库的本机库。

resourceAssemblies
IEnumerable<ResourceAssembly>

库的资源程序集。

dependencies
IEnumerable<Dependency>

库的依赖项。

serviceable
Boolean

库是否可服务。

例外

typenameversionnull 或空字符串。

dependenciesruntimeAssemblyGroupsnativeLibraryGroupsresourceAssembliesnull

适用于

.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 (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);

参数

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

库包的哈希路径。

例外

typenameversionnull 或空字符串。

dependenciesruntimeAssemblyGroupsnativeLibraryGroupsresourceAssembliesnull

适用于

.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 (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);

参数

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

库的运行时存储清单名称。

例外

typenameversionruntimeAssemblyGroupsnativeLibraryGroupsresourceAssembliesdependenciesnull

适用于

.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