Class ModulePackageReference
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes a package input that can be loaded into the engine runtime.
public sealed class ModulePackageReferenceInheritance
Section titled “Inheritance”object ← ModulePackageReference
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”ModulePackageReference(string, string?, string?)
Section titled “ ModulePackageReference(string, string?, string?)”Initializes a new instance of the
public ModulePackageReference(string path, string? id = null, string? kind = null)Parameters
Section titled “Parameters”path string
The assembly or manifest path.
id string?
The optional package identifier override.
kind string?
The package input kind.
Fields
Section titled “Fields”AssemblyPathKind
Section titled “ AssemblyPathKind”Identifies a package input that points directly to an assembly path.
public const string AssemblyPathKind = "assembly-path"Field Value
Section titled “Field Value”DirectoryManifestKind
Section titled “ DirectoryManifestKind”Identifies a package input that was discovered from a directory manifest scan.
public const string DirectoryManifestKind = "directory-manifest"Field Value
Section titled “Field Value”ManifestFileKind
Section titled “ ManifestFileKind”Identifies a package input that points directly to a manifest file.
public const string ManifestFileKind = "manifest-file"Field Value
Section titled “Field Value”Properties
Section titled “Properties”Gets the optional package identifier override.
public string? Id { get; }Property Value
Section titled “Property Value”IsAssemblyPath
Section titled “ IsAssemblyPath”Gets a value indicating whether this reference points directly to an assembly path.
public bool IsAssemblyPath { get; }Property Value
Section titled “Property Value”IsManifestFile
Section titled “ IsManifestFile”Gets a value indicating whether this reference points to a manifest-backed package input.
public bool IsManifestFile { get; }Property Value
Section titled “Property Value”Gets the normalized package input kind.
public string Kind { get; }Property Value
Section titled “Property Value”Gets the assembly or manifest path.
public string Path { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromManifest(string, string?)
Section titled “ FromManifest(string, string?)”Creates a manifest-backed package reference.
public static ModulePackageReference FromManifest(string manifestPath, string? id = null)Parameters
Section titled “Parameters”manifestPath string
The manifest path to load.
id string?
The optional package identifier override.
Returns
Section titled “Returns”A manifest-backed package reference.