Class ContentReferenceStub
IContentReference implementation that only contains content reference fields, used for IContentReferenceCache to avoid storing full content items.
Namespace: Tableau.Migration.Content
Assembly: Tableau.Migration.dll
Syntax
public sealed class ContentReferenceStub : IContentReference, IEquatable<IContentReference>, IRestIdentifiable
Constructors
ContentReferenceStub(Guid, string, ContentLocation)
Creates a new ContentReferenceStub object.
Declaration
public ContentReferenceStub(Guid id, string contentUrl, ContentLocation location)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | The unique identifier of the content item, corresponding to the LUID in the Tableau REST API. |
string | contentUrl | The site-unique "content URL" of the content item, or an empty string if the content type does not use a content URL. |
ContentLocation | location | The logical location path of the content item, for project-level content this is the project path and the content item name. |
ContentReferenceStub(Guid, string, ContentLocation, string)
Creates a new ContentReferenceStub object.
Declaration
public ContentReferenceStub(Guid id, string contentUrl, ContentLocation location, string name)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | The unique identifier of the content item, corresponding to the LUID in the Tableau REST API. |
string | contentUrl | The site-unique "content URL" of the content item, or an empty string if the content type does not use a content URL. |
ContentLocation | location | The logical location path of the content item, for project-level content this is the project path and the content item name. |
string | name | The name of the content item |
ContentReferenceStub(IContentReference)
Creates a new ContentReferenceStub object.
Declaration
public ContentReferenceStub(IContentReference copy)
Parameters
Type | Name | Description |
---|---|---|
IContentReference | copy | An object to copy values from. |
Properties
ContentUrl
Get the site-unique "content URL" of the content item, or an empty string if the content type does not use a content URL.
Declaration
public string ContentUrl { get; init; }
Property Value
Type | Description |
---|---|
string |
Id
Gets the unique identifier.
Declaration
public Guid Id { get; init; }
Property Value
Type | Description |
---|---|
Guid |
Location
Gets the logical location path of the content item, for project-level content this is the project path and the content item name.
Declaration
public ContentLocation Location { get; init; }
Property Value
Type | Description |
---|---|
ContentLocation |
Name
Gets the name of the content item. This is equivalent to the last segment of the Location. Renames should be performed through mapping.
Declaration
public string Name { get; init; }
Property Value
Type | Description |
---|---|
string |
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? otherObj)
Parameters
Type | Name | Description |
---|---|---|
object | otherObj |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
Equals(IContentReference?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(IContentReference? other)
Parameters
Type | Name | Description |
---|---|---|
IContentReference | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
Operators
operator ==(ContentReferenceStub?, ContentReferenceStub?)
Declaration
public static bool operator ==(ContentReferenceStub? a, ContentReferenceStub? b)
Parameters
Type | Name | Description |
---|---|---|
ContentReferenceStub | a | |
ContentReferenceStub | b |
Returns
Type | Description |
---|---|
bool |
operator !=(ContentReferenceStub?, ContentReferenceStub?)
Declaration
public static bool operator !=(ContentReferenceStub? a, ContentReferenceStub? b)
Parameters
Type | Name | Description |
---|---|---|
ContentReferenceStub | a | |
ContentReferenceStub | b |
Returns
Type | Description |
---|---|
bool |