Struct ProcessId
This struct holds information about a process identifier.
Inherited Members
Namespace: Unity.Cloud.AppLinking
Assembly: Unity.Cloud.AppLinking.dll
Syntax
public readonly struct ProcessId
Constructors
ProcessId(string)
Declaration
public ProcessId(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string representing the process identifier |
Fields
None
Returns the value of an identifier representing an invalid process id
Declaration
public static readonly ProcessId None
Field Value
Type | Description |
---|---|
ProcessId |
Methods
Equals(object)
Validates that obj
is a ProcessId instance and that it has the same value 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 instances have the same values; false otherwise. |
Overrides
Equals(ProcessId)
Returns whether two ProcessId objects are equals.
Declaration
public bool Equals(ProcessId other)
Parameters
Type | Name | Description |
---|---|---|
ProcessId | other |
Returns
Type | Description |
---|---|
bool | true if both instances have the same values; false otherwise. |
GetHashCode()
Computes 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 ProcessId.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The string result. |
Overrides
Operators
operator ==(ProcessId, ProcessId)
Returns whether two ProcessId instances are equal.
Declaration
public static bool operator ==(ProcessId left, ProcessId right)
Parameters
Type | Name | Description |
---|---|---|
ProcessId | left | First instance. |
ProcessId | right | Second instance. |
Returns
Type | Description |
---|---|
bool |
explicit operator string(ProcessId)
Declaration
public static explicit operator string(ProcessId pId)
Parameters
Type | Name | Description |
---|---|---|
ProcessId | pId | Object to cast |
Returns
Type | Description |
---|---|
string | The resulting string |
operator !=(ProcessId, ProcessId)
Returns whether two ProcessId instances are different.
Declaration
public static bool operator !=(ProcessId left, ProcessId right)
Parameters
Type | Name | Description |
---|---|---|
ProcessId | left | First instance. |
ProcessId | right | Second instance. |
Returns
Type | Description |
---|---|
bool |