Library 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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)
- Source:
- Library.cs
- Source:
- Library.cs
- Source:
- Library.cs
- Source:
- Library.cs
- Source:
- 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)
- Source:
- Library.cs
- Source:
- Library.cs
- Source:
- Library.cs
- Source:
- Library.cs
- Source:
- 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
、name
或 version
为 null
或空字符串。
dependencies
null
。
适用于
Library(String, String, String, String, IEnumerable<Dependency>, Boolean, String, String, String)
- Source:
- Library.cs
- Source:
- Library.cs
- Source:
- Library.cs
- Source:
- Library.cs
- Source:
- 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
、name
或 version
为 null
或空字符串。
dependencies
null
。