GrainType Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the type of a grain.
[Orleans.GenerateSerializer]
[Orleans.Immutable]
[System.Serializable]
public readonly struct GrainType : IComparable<Orleans.Runtime.GrainType>, IEquatable<Orleans.Runtime.GrainType>, ISpanFormattable, System.Runtime.Serialization.ISerializable
[<Orleans.GenerateSerializer>]
[<Orleans.Immutable>]
[<System.Serializable>]
type GrainType = struct
interface ISerializable
interface ISpanFormattable
interface IFormattable
Public Structure GrainType
Implements IComparable(Of GrainType), IEquatable(Of GrainType), ISerializable, ISpanFormattable
- Inheritance
-
GrainType
- Attributes
- Implements
Constructors
| GrainType(Byte[]) |
Initializes a new instance of the GrainType struct. |
| GrainType(IdSpan) |
Initializes a new instance of the GrainType struct. |
Properties
| IsDefault |
Gets a value indicating whether this instance is the default value. |
| Value |
Gets the underlying value. |
Methods
| AsSpan() |
Returns a span representation of this instance. |
| CompareTo(GrainType) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
| Create(String) |
Creates a new GrainType instance. |
| Equals(GrainType) | Indicates whether the current object is equal to another object of the same type. |
| Equals(Object) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
| GetObjectData(SerializationInfo, StreamingContext) |
Obsolete.
Populates a SerializationInfo with the data needed to serialize the target object. |
| GetUniformHashCode() |
Generates a uniform, stable hash code for this grain type. |
| ToString() |
Returns a string representation of this instance, decoding the value as UTF8. |
| UnsafeGetArray(GrainType) |
Returns the array underlying a grain type instance. |
Operators
| Equality(GrainType, GrainType) |
Compares the provided operands for equality. |
| Explicit(GrainType to IdSpan) | |
| Explicit(IdSpan to GrainType) | |
| Inequality(GrainType, GrainType) |
Compares the provided operands for inequality. |
Explicit Interface Implementations
| IFormattable.ToString(String, IFormatProvider) | |
| ISpanFormattable.TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Extension Methods
| IsClient(GrainType) |
Returns |
| IsGrainService(GrainType) |
Returns |
| IsLegacyGrain(GrainType) |
Returns |
| IsSystemTarget(GrainType) |
Returns |