Struct ArtifactId
This struct holds information about artifact identifier.
Inherited Members
Namespace: Unity.Cloud.Storage
Syntax
public readonly struct ArtifactId
Constructors
ArtifactId(Guid)
Returns a ArtifactId using a Guid.
Declaration
public ArtifactId(Guid value)
Parameters
Type | Name | Description |
---|---|---|
Guid | value | The guid representing the artifact identifier |
ArtifactId(String)
Returns a ArtifactId using a String.
Declaration
public ArtifactId(string value)
Parameters
Type | Name | Description |
---|---|---|
String | value | The string representing the artifact identifier |
Fields
None
Returns the value of an identifier representing an invalid artifact ID.
Declaration
public static readonly ArtifactId None
Field Value
Type | Description |
---|---|
ArtifactId |
Methods
Equals(Object)
Validates obj
is a ArtifactId instance and has the same values as this instance.
Declaration
public override readonly bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | Compare the values with this instance. |
Returns
Type | Description |
---|---|
Boolean | true if both instance have the same values; false otherwise. |
Overrides
Equals(ArtifactId)
Returns whether two ArtifactId objects are equals.
Declaration
public readonly bool Equals(ArtifactId other)
Parameters
Type | Name | Description |
---|---|---|
ArtifactId | other |
Returns
Type | Description |
---|---|
Boolean | true if both instance have the same values; false otherwise. |
GetHashCode()
Computes a hash code for the object.
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | 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.
ToString()
Gets the string representation of this ArtifactId.
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String | The string result. |
Overrides
Operators
Equality(ArtifactId, ArtifactId)
Checks whether two ArtifactId are equal.
Declaration
public static bool operator ==(ArtifactId left, ArtifactId right)
Parameters
Type | Name | Description |
---|---|---|
ArtifactId | left | Compare with this first instance. |
ArtifactId | right | Compare with this other instance. |
Returns
Type | Description |
---|---|
Boolean |
Explicit(ArtifactId to String)
Explicitly casts a ArtifactId to a String.
Declaration
public static explicit operator string (ArtifactId sId)
Parameters
Type | Name | Description |
---|---|---|
ArtifactId | sId | Object to cast |
Returns
Type | Description |
---|---|
String | The resulting String |
Inequality(ArtifactId, ArtifactId)
Checks whether two ArtifactId aren't equal.
Declaration
public static bool operator !=(ArtifactId left, ArtifactId right)
Parameters
Type | Name | Description |
---|---|---|
ArtifactId | left | Compare with this first instance. |
ArtifactId | right | Compare with this other instance. |
Returns
Type | Description |
---|---|
Boolean | true if both instances are not the same; false if both instances are the same. |