November Happy Hour will be moved to Thursday December 5th.

Class SoftLink

Reads and edits links defined in HTML.

Inheritance
System.Object
SoftLink
Implements
System.IEquatable<SoftLink>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 10.10.4
public class SoftLink : IEquatable<SoftLink>

Constructors

Initializes a new instance of the SoftLink class with default values.

Declaration
public SoftLink()

Properties

Date when the link was first found broken

Declaration
public DateTime? FirstDateBroken { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

HttpStatus code if broken

Declaration
public HttpStatusCode? HttpStatusCode { get; set; }
Property Value
Type Description
System.Nullable<System.Net.HttpStatusCode>

Id of the soft link

Declaration
public int Id { get; set; }
Property Value
Type Description
System.Int32

Date when the link was last checked

Declaration
public DateTime? LastCheckedDate { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

Gets or sets the service used to resolve links.

Declaration
public Injected<IPermanentLinkMapper> LinkMapper { get; set; }
Property Value
Type Description
Injected<IPermanentLinkMapper>

Current System.Net.WebExceptionStatus

Declaration
public WebExceptionStatus? LinkStatus { get; set; }
Property Value
Type Description
System.Nullable<System.Net.WebExceptionStatus>

Gets or sets the owner content link.

Declaration
public ContentReference OwnerContentLink { get; set; }
Property Value
Type Description
ContentReference

The owner content link.

Gets or sets the owner language branch.

Declaration
public CultureInfo OwnerLanguage { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo

The owner language branch.

Gets the protocol part of the link.

Declaration
public string Protocol { get; }
Property Value
Type Description
System.String

Gets or sets the referenced content link.

Declaration
public ContentReference ReferencedContentLink { get; set; }
Property Value
Type Description
ContentReference

The referenced content link.

Gets or sets the referencedlanguage branch.

Declaration
public CultureInfo ReferencedLanguage { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo

The referencedlanguage branch.

Gets or sets the type of the referenced object.

Declaration
public ReferenceType SoftLinkType { get; set; }
Property Value
Type Description
ReferenceType

The type of the soft link.

Get or set the Url of the link The set will also affect the Protocol and PageLink properties

Declaration
public string UnresolvedUrl { get; protected set; }
Property Value
Type Description
System.String

Get or set the Url of the link The set will also affect the Protocol and PageLink properties

Declaration
public string Url { get; set; }
Property Value
Type Description
System.String

Methods

Clears the checked state of the current SoftLink instance.

Declaration
public virtual void ClearState()

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(SoftLink other)
Parameters
Type Name Description
SoftLink other

An object to compare with this object.

Returns
Type Description
System.Boolean

true if the current object is equal to the other parameter; otherwise, false.

Determines whether the specified System.Object is equal to this instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with this instance.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to this instance; otherwise, false.

Overrides
System.Object.Equals(System.Object)
Exceptions
Type Condition
System.NullReferenceException

The obj parameter is null.

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
System.Object.GetHashCode()

Implements

System.IEquatable<T>

Extension Methods