Class Link
- Namespace
- idunno.Bluesky.RichText
- Assembly
- idunno.Bluesky.dll
Provides an object representation of a link tag in a Bluesky post.
public record Link : PostBuilderFacetFeature, IEquatable<PostBuilderFacetFeature>, IEquatable<Link>Inheritance
Implements
Inherited Members
Constructors
Link(string)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(string uri)Parameters
uristring-
The System.Uri to add to a post.
Exceptions
- ArgumentException
-
Thrown when
uriis null or is not a valid System.Uri.
Link(Uri)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(Uri uri)Parameters
uriUri-
The System.Uri to add to a post.
Exceptions
- ArgumentNullException
-
Thrown when
uriis null.
Link(Uri, string)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(Uri uri, string text)Parameters
uriUri-
The idunno.Bluesky.RichText.Link.Uri to add to a post.
textstring-
The text to wrap the hashtag around.
Exceptions
- ArgumentException
-
Thrown when
textis null or white space. - ArgumentNullException
-
Thrown when
uriis null.
Link(string, string)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(string uri, string text)Parameters
uristring-
The System.Uri to add to a post.
textstring-
The text to wrap the hashtag around, if any. If not specified the
uriwill be used..
Exceptions
- ArgumentException
-
when
uriortextis null or white space.
Link(Link)
protected Link(Link original)Parameters
originalLink
Link(string)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(string uri)Parameters
uristring-
The System.Uri to add to a post.
Exceptions
- ArgumentException
-
Thrown when
uriis null or is not a valid System.Uri.
Link(Uri)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(Uri uri)Parameters
uriUri-
The System.Uri to add to a post.
Exceptions
- ArgumentNullException
-
Thrown when
uriis null.
Link(Uri, string)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(Uri uri, string text)Parameters
uriUri-
The idunno.Bluesky.RichText.Link.Uri to add to a post.
textstring-
The text to wrap the hashtag around.
Exceptions
- ArgumentException
-
Thrown when
textis null or white space. - ArgumentNullException
-
Thrown when
uriis null.
Link(string, string)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(string uri, string text)Parameters
uristring-
The System.Uri to add to a post.
textstring-
The text to wrap the hashtag around, if any. If not specified the
uriwill be used..
Exceptions
- ArgumentException
-
when
uriortextis null or white space.
Link(Link)
protected Link(Link original)Parameters
originalLink
Link(string)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(string uri)Parameters
uristring-
The System.Uri to add to a post.
Exceptions
- ArgumentException
-
Thrown when
uriis null or is not a valid System.Uri.
Link(Uri)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(Uri uri)Parameters
uriUri-
The System.Uri to add to a post.
Exceptions
- ArgumentNullException
-
Thrown when
uriis null.
Link(Uri, string)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(Uri uri, string text)Parameters
uriUri-
The idunno.Bluesky.RichText.Link.Uri to add to a post.
textstring-
The text to wrap the hashtag around.
Exceptions
- ArgumentException
-
Thrown when
textis null or white space. - ArgumentNullException
-
Thrown when
uriis null.
Link(string, string)
Creates a new instance of idunno.Bluesky.RichText.Link.
public Link(string uri, string text)Parameters
uristring-
The System.Uri to add to a post.
textstring-
The text to wrap the hashtag around, if any. If not specified the
uriwill be used..
Exceptions
- ArgumentException
-
when
uriortextis null or white space.
Link(Link)
protected Link(Link original)Parameters
originalLink
Properties
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Uri
Gets the idunno.Bluesky.RichText.Link.Uri the facet feature links to.
public Uri Uri { get; init; }Property Value
- Uri
Uri
Gets the idunno.Bluesky.RichText.Link.Uri the facet feature links to.
public Uri Uri { get; init; }Property Value
- Uri
Uri
Gets the idunno.Bluesky.RichText.Link.Uri the facet feature links to.
public Uri Uri { get; init; }Property Value
- Uri
Methods
<Clone>$()
public override Link <Clone>$()Returns
<Clone>$()
public override Link <Clone>$()Returns
<Clone>$()
public override Link <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(PostBuilderFacetFeature?)
public override sealed bool Equals(PostBuilderFacetFeature? other)Parameters
otherPostBuilderFacetFeature?
Returns
Equals(Link?)
public virtual bool Equals(Link? other)Parameters
otherLink?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(PostBuilderFacetFeature?)
public override sealed bool Equals(PostBuilderFacetFeature? other)Parameters
otherPostBuilderFacetFeature?
Returns
Equals(Link?)
public virtual bool Equals(Link? other)Parameters
otherLink?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(PostBuilderFacetFeature?)
public override sealed bool Equals(PostBuilderFacetFeature? other)Parameters
otherPostBuilderFacetFeature?
Returns
Equals(Link?)
public virtual bool Equals(Link? other)Parameters
otherLink?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
-
The text of the facet, or an empty string if the facet has no text.
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
-
The text of the facet, or an empty string if the facet has no text.
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
-
The text of the facet, or an empty string if the facet has no text.
Operators
operator ==(Link?, Link?)
public static bool operator ==(Link? left, Link? right)Parameters
Returns
operator ==(Link?, Link?)
public static bool operator ==(Link? left, Link? right)Parameters
Returns
operator ==(Link?, Link?)
public static bool operator ==(Link? left, Link? right)Parameters
Returns
operator !=(Link?, Link?)
public static bool operator !=(Link? left, Link? right)Parameters
Returns
operator !=(Link?, Link?)
public static bool operator !=(Link? left, Link? right)Parameters
Returns
operator !=(Link?, Link?)
public static bool operator !=(Link? left, Link? right)