Struct DatasetUpdateHistoryDescriptor
This struct contains the identifiers for a dataset's update history entry.
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public struct DatasetUpdateHistoryDescriptor
Constructors
DatasetUpdateHistoryDescriptor(DatasetDescriptor, int)
Creates an instance of the DatasetUpdateHistoryDescriptor struct.
Declaration
public DatasetUpdateHistoryDescriptor(DatasetDescriptor datasetDescriptor, int sequenceNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| DatasetDescriptor | datasetDescriptor | The history entry's dataset descriptor. |
| int | sequenceNumber | The history entry's sequence number. |
Properties
AssetId
Declaration
public AssetId AssetId { get; }
Property Value
| Type | Description |
|---|---|
| AssetId |
AssetVersion
Declaration
public AssetVersion AssetVersion { get; }
Property Value
| Type | Description |
|---|---|
| AssetVersion |
DatasetDescriptor
The dataset descriptor of the history entry.
Declaration
public readonly DatasetDescriptor DatasetDescriptor { get; }
Property Value
| Type | Description |
|---|---|
| DatasetDescriptor |
DatasetId
Declaration
public DatasetId DatasetId { get; }
Property Value
| Type | Description |
|---|---|
| DatasetId |
OrganizationId
Declaration
public OrganizationId OrganizationId { get; }
Property Value
| Type | Description |
|---|---|
| OrganizationId |
ProjectId
Declaration
public ProjectId ProjectId { get; }
Property Value
| Type | Description |
|---|---|
| ProjectId |
SequenceNumber
The sequence number of the history entry.
Declaration
public readonly int SequenceNumber { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Equals(object)
Validate obj is a DatasetUpdateHistoryDescriptor instance and have the same values as this instance.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | Compare the values with this instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instance have the same values; false otherwise. |
Overrides
Equals(DatasetUpdateHistoryDescriptor)
Returns whether two DatasetUpdateHistoryDescriptor objects are equals.
Declaration
public bool Equals(DatasetUpdateHistoryDescriptor other)
Parameters
| Type | Name | Description |
|---|---|---|
| DatasetUpdateHistoryDescriptor | other | Compare the values with this instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instance have the same values; false otherwise. |
GetHashCode()
Compute a hash code for the object.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
Remarks
- You should not assume that equal hash codes imply object equality.
- You should never persist or use a hash code outside the application domain in which it was created, because the same object may hash differently across application domains, processes, and platforms.
Operators
operator ==(DatasetUpdateHistoryDescriptor, DatasetUpdateHistoryDescriptor)
Checks whether two DatasetUpdateHistoryDescriptor are equal.
Declaration
public static bool operator ==(DatasetUpdateHistoryDescriptor left, DatasetUpdateHistoryDescriptor right)
Parameters
| Type | Name | Description |
|---|---|---|
| DatasetUpdateHistoryDescriptor | left | Compare with this first instance. |
| DatasetUpdateHistoryDescriptor | right | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(DatasetUpdateHistoryDescriptor, DatasetUpdateHistoryDescriptor)
Checks whether two DatasetUpdateHistoryDescriptor aren't equal.
Declaration
public static bool operator !=(DatasetUpdateHistoryDescriptor left, DatasetUpdateHistoryDescriptor right)
Parameters
| Type | Name | Description |
|---|---|---|
| DatasetUpdateHistoryDescriptor | left | Compare with this first instance. |
| DatasetUpdateHistoryDescriptor | right | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instances are not the same; false if both instances are the same. |