Skip to content

CodeBaseEntry

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

One <codeBase> entry parsed from a .NET Framework configuration file or publisher-policy assembly. CodeBase entries are honored only for strong-named binds at the version specified.

public sealed record CodeBaseEntry : IEquatable<CodeBaseEntry>

ObjectCodeBaseEntry

CodeBaseEntry(PolicyLayer, string, string?, string, Version, string)

Section titled “CodeBaseEntry(PolicyLayer, string, string?, string, Version, string)”

One &lt;codeBase&gt; entry parsed from a .NET Framework configuration file or publisher-policy assembly. CodeBase entries are honored only for strong-named binds at the version specified.

Parameters:

  • Source (PolicyLayer): Which policy layer this codeBase came from.
  • Name (String): Simple name of the assembly.
  • PublicKeyToken (String): Hex-string PKT.
  • Culture (String): Culture, defaulting to "neutral".
  • Version (Version): The version this codeBase is anchored to.
  • Href (String): The configured href, either an absolute path/URL or a path relative to the application base.
public CodeBaseEntry(PolicyLayer Source, string Name, string? PublicKeyToken, string Culture, Version Version, string Href)

Culture, defaulting to "neutral".

Returns: String

public string Culture { get; init; }

The configured href, either an absolute path/URL or a path relative to the application base.

Returns: String

public string Href { get; init; }

Simple name of the assembly.

Returns: String

public string Name { get; init; }

Hex-string PKT.

Returns: String

public string? PublicKeyToken { get; init; }

Which policy layer this codeBase came from.

Returns: PolicyLayer

public PolicyLayer Source { get; init; }

The version this codeBase is anchored to.

Returns: Version

public Version Version { get; init; }

Deconstruct(out PolicyLayer, out string, out string?, out string, out Version, out string)

Section titled “Deconstruct(out PolicyLayer, out string, out string?, out string, out Version, out string)”

Parameters:

public void Deconstruct(out PolicyLayer Source, out string Name, out string? PublicKeyToken, out string Culture, out Version Version, out string Href)

Parameters:

Returns: Boolean

public bool Equals(CodeBaseEntry? other)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

operator !=(CodeBaseEntry?, CodeBaseEntry?)

Section titled “operator !=(CodeBaseEntry?, CodeBaseEntry?)”

Parameters:

Returns: Boolean

public static bool operator !=(CodeBaseEntry? left, CodeBaseEntry? right)

operator ==(CodeBaseEntry?, CodeBaseEntry?)

Section titled “operator ==(CodeBaseEntry?, CodeBaseEntry?)”

Parameters:

Returns: Boolean

public static bool operator ==(CodeBaseEntry? left, CodeBaseEntry? right)