Show / Hide Table of Contents

Class StacLink

A STAC link

Inheritance
System.Object
StacLink
StacObjectLink
Namespace: Stac
Assembly: DotNetStac.dll
Syntax
public class StacLink : ICloneable

Constructors

| Improve this Doc View Source

StacLink()

Initializes a new instance of the StacLink class.

Declaration
public StacLink()
| Improve this Doc View Source

StacLink(StacLink)

Initializes a new instance of the StacLink class.

Declaration
public StacLink(StacLink source)
Parameters
Type Name Description
StacLink source

Source StacLink to clone

| Improve this Doc View Source

StacLink(Uri)

Initializes a new instance of the StacLink class.

Declaration
public StacLink(Uri uri)
Parameters
Type Name Description
Uri uri

Uri of the link

| Improve this Doc View Source

StacLink(Uri, String, String, String, UInt64)

Initializes a new instance of the StacLink class.

Declaration
public StacLink(Uri uri, string relationshipType, string title, string mediaType, ulong contentLength = null)
Parameters
Type Name Description
Uri uri

Uri of the link

System.String relationshipType

Relationship type of the link

System.String title

Title of the link

System.String mediaType

Media type of the link

System.UInt64 contentLength

Content length of the link

Properties

| Improve this Doc View Source

AdditionalProperties

Gets or sets the additional properties of the link.

Declaration
public IDictionary<string, object> AdditionalProperties { get; set; }
Property Value
Type Description
IDictionary<System.String, System.Object>
| Improve this Doc View Source

ContentType

Gets or sets the Content-Type of the link.

Declaration
public virtual ContentType ContentType { get; set; }
Property Value
Type Description
ContentType
| Improve this Doc View Source

Length

Gets or sets the length of the link.

Declaration
public ulong Length { get; set; }
Property Value
Type Description
System.UInt64
| Improve this Doc View Source

Parent

Gets or sets the parent of the link. This is used to resolve relative links.

Declaration
public IStacObject Parent { get; set; }
Property Value
Type Description
IStacObject
| Improve this Doc View Source

RelationshipType

Gets or sets the relationship type of the link.

Declaration
public virtual string RelationshipType { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Title

Gets or sets the title of the link.

Declaration
public virtual string Title { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Type

Gets or sets the Content Type of the link using a string.

Declaration
public string Type { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Uri

Gets or sets the URI of the link.

Declaration
public virtual Uri Uri { get; set; }
Property Value
Type Description
Uri

Methods

| Improve this Doc View Source

Clone()

Declaration
public object Clone()
Returns
Type Description
System.Object
| Improve this Doc View Source

CreateAlternateLink(Uri, String, String)

Create an alternate link.

Declaration
public static StacLink CreateAlternateLink(Uri uri, string mediaType = null, string title = null)
Parameters
Type Name Description
Uri uri

Uri of the link

System.String mediaType

Media type of the link

System.String title

Title of the link

Returns
Type Description
StacLink

StacLink

| Improve this Doc View Source

CreateChildLink(Uri, String, String)

Create a child link.

Declaration
public static StacLink CreateChildLink(Uri uri, string mediaType = null, string title = null)
Parameters
Type Name Description
Uri uri

Uri of the link

System.String mediaType

Media type of the link

System.String title

Title of the link

Returns
Type Description
StacLink

StacLink

| Improve this Doc View Source

CreateCollectionLink(Uri, String, String)

Create a collection link.

Declaration
public static StacLink CreateCollectionLink(Uri uri, string mediaType = null, string title = null)
Parameters
Type Name Description
Uri uri

Uri of the link

System.String mediaType

Media type of the link

System.String title

Title of the link

Returns
Type Description
StacLink

StacLink

| Improve this Doc View Source

CreateDerivedFromLink(Uri, String, String)

Create a derived_from link.

Declaration
public static StacLink CreateDerivedFromLink(Uri uri, string mediaType = null, string title = null)
Parameters
Type Name Description
Uri uri

Uri of the link

System.String mediaType

Media type of the link

System.String title

Title of the link

Returns
Type Description
StacLink

StacLink

| Improve this Doc View Source

CreateItemLink(Uri, String, String)

Create an item link.

Declaration
public static StacLink CreateItemLink(Uri uri, string mediaType = null, string title = null)
Parameters
Type Name Description
Uri uri

Uri of the link

System.String mediaType

Media type of the link

System.String title

Title of the link

Returns
Type Description
StacLink

StacLink

| Improve this Doc View Source

CreateObjectLink(IStacObject, Uri)

Create a link from a StacObject.

Declaration
public static StacLink CreateObjectLink(IStacObject stacObject, Uri uri)
Parameters
Type Name Description
IStacObject stacObject

StacObject to create a link from

Uri uri

Uri of the link

Returns
Type Description
StacLink

StacLink

| Improve this Doc View Source

CreateParentLink(Uri, String, String)

Create a parent link.

Declaration
public static StacLink CreateParentLink(Uri uri, string mediaType = null, string title = null)
Parameters
Type Name Description
Uri uri

Uri of the link

System.String mediaType

Media type of the link

System.String title

Title of the link

Returns
Type Description
StacLink

StacLink

| Improve this Doc View Source

CreateRootLink(Uri, String, String)

Create a root link.

Declaration
public static StacLink CreateRootLink(Uri uri, string mediaType = null, string title = null)
Parameters
Type Name Description
Uri uri

Uri of the link

System.String mediaType

Media type of the link

System.String title

Title of the link

Returns
Type Description
StacLink

StacLink

| Improve this Doc View Source

CreateSelfLink(Uri, String, String)

Create a self link.

Declaration
public static StacLink CreateSelfLink(Uri uri, string mediaType = null, string title = null)
Parameters
Type Name Description
Uri uri

Uri of the link

System.String mediaType

Media type of the link

System.String title

Title of the link

Returns
Type Description
StacLink

StacLink

Extension Methods

StacAccessorsHelpers.ToStringByAttributes(Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX