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; }