Struct AssetLibraryJobId
This struct holds information about an asset library job's identifier.
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
[Serializable]
public struct AssetLibraryJobId
Constructors
AssetLibraryJobId(Guid)
Returns a AssetLibraryJobId using a Guid.
Declaration
public AssetLibraryJobId(Guid value)
Parameters
Type | Name | Description |
---|---|---|
Guid | value | The guid representing the library identifier |
AssetLibraryJobId(string)
Returns a AssetLibraryJobId using a string.
Declaration
public AssetLibraryJobId(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string representing the library identifier |
Fields
None
Return the value of an identifier representing an invalid library id
Declaration
public static readonly AssetLibraryJobId None
Field Value
Type | Description |
---|---|
AssetLibraryJobId |
Methods
Equals(object)
Validate obj
is a AssetLibraryJobId 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(AssetLibraryJobId)
Returns whether two AssetLibraryJobId objects are equals.
Declaration
public bool Equals(AssetLibraryJobId other)
Parameters
Type | Name | Description |
---|---|---|
AssetLibraryJobId | other | Another AssetLibraryJobId |
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.
ToString()
Get the string representation of this AssetLibraryJobId.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The string result. |
Overrides
Operators
operator ==(AssetLibraryJobId, AssetLibraryJobId)
Get if two AssetLibraryJobId represent the same.
Declaration
public static bool operator ==(AssetLibraryJobId left, AssetLibraryJobId right)
Parameters
Type | Name | Description |
---|---|---|
AssetLibraryJobId | left | Compare with this first instance. |
AssetLibraryJobId | right | Compare with this other instance. |
Returns
Type | Description |
---|---|
bool |
explicit operator string(AssetLibraryJobId)
Explicitly cast a AssetLibraryJobId to a string>
Declaration
public static explicit operator string(AssetLibraryJobId pId)
Parameters
Type | Name | Description |
---|---|---|
AssetLibraryJobId | pId | Object to cast |
Returns
Type | Description |
---|---|
string | The resulting string |
operator !=(AssetLibraryJobId, AssetLibraryJobId)
Get if two AssetLibraryJobId does not represent the same.
Declaration
public static bool operator !=(AssetLibraryJobId left, AssetLibraryJobId right)
Parameters
Type | Name | Description |
---|---|---|
AssetLibraryJobId | left | Compare with this first instance. |
AssetLibraryJobId | 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. |