Library Constructors

Definition

Overloads

Library(String, String, String, String, IEnumerable<Dependency>, Boolean)

Initializes a new instance of the Library class using the specified library properties.

Library(String, String, String, String, IEnumerable<Dependency>, Boolean, String, String)

Initializes a new instance of the Library class using the specified library properties and path.

Library(String, String, String, String, IEnumerable<Dependency>, Boolean, String, String, String)

Initializes a new instance of the Library class using the specified library properties, path and runtime store manifest.

Library(String, String, String, String, IEnumerable<Dependency>, Boolean)

Source:
Library.cs
Source:
Library.cs
Source:
Library.cs

Initializes a new instance of the Library class using the specified library properties.

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)

Parameters

type
String

The library's type.

name
String

The library's name.

version
String

The library's version.

hash
String

The library package's hash.

dependencies
IEnumerable<Dependency>

The library's dependencies.

serviceable
Boolean

Whether the library is serviceable.

Applies to

Library(String, String, String, String, IEnumerable<Dependency>, Boolean, String, String)

Source:
Library.cs
Source:
Library.cs
Source:
Library.cs

Initializes a new instance of the Library class using the specified library properties and path.

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)

Parameters

type
String

The library's type.

name
String

The library's name.

version
String

The library's version.

hash
String

The library package's hash.

dependencies
IEnumerable<Dependency>

The library's dependencies.

serviceable
Boolean

Whether the library is serviceable.

path
String

The library package's path.

hashPath
String

The library package's hash path.

Exceptions

type, or name, or version is null or an empty string.

dependencies is null.

Applies to

Library(String, String, String, String, IEnumerable<Dependency>, Boolean, String, String, String)

Source:
Library.cs
Source:
Library.cs
Source:
Library.cs

Initializes a new instance of the Library class using the specified library properties, path and runtime store manifest.

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)

Parameters

type
String

The library's type.

name
String

The library's name.

version
String

The library's version.

hash
String

The library package's hash.

dependencies
IEnumerable<Dependency>

The library's dependencies.

serviceable
Boolean

Whether the library is serviceable.

path
String

The library package's path.

hashPath
String

The library package's hash path.

runtimeStoreManifestName
String

The library's runtime store manifest name.

Exceptions

type, or name, or version is null or an empty string.

dependencies is null.

Applies to