Child(string)
public TaskId Child(string segment)Creates a child identifier by appending one logical segment.
Parameters
segmentstring
Exceptions
System.ArgumentExceptionsegmentisnull, empty, or contains an unpaired UTF-16 surrogate.
public TaskId Child(string segment)segmentstringSystem.ArgumentExceptionsegment is null, empty, or contains an unpaired UTF-16 surrogate. public static TaskId CreateRoot(string rootSegment)rootSegmentstringSystem.ArgumentExceptionrootSegment is null, empty, or contains an unpaired UTF-16 surrogate. public bool Equals(TaskId other)otherTaskIdtrue if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object? obj)objobject?true if obj and this instance are the same type and represent the same value; otherwise, false.public override int GetHashCode()public bool IsAncestorOf(TaskId other)other. TaskId is outside the hierarchy and returns false. otherTaskIdpublic bool IsChildOf(TaskId other)other.otherTaskIdpublic bool IsDescendantOf(TaskId other)other. TaskId is outside the hierarchy and returns false. otherTaskIdpublic bool IsParentOf(TaskId other)other.otherTaskIdpublic TaskId Parent()TaskId for a root.public static TaskId Parse(ReadOnlySpan<char> s)sReadOnlySpan<char>public static TaskId Parse(ReadOnlySpan<char> s, IFormatProvider? provider)sReadOnlySpan<char>providerIFormatProvider?public static TaskId Parse(string s)sstringpublic static TaskId Parse(string s, IFormatProvider? provider)sstringproviderIFormatProvider?public override string ToString()public string ToString(string? format, IFormatProvider? formatProvider)formatstring?formatProviderIFormatProvider?public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider)destination.destinationSpan<char>charsWrittenintformatReadOnlySpan<char>providerIFormatProvider?public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out TaskId result)sReadOnlySpan<char>providerIFormatProvider?resultTaskIdpublic static bool TryParse(ReadOnlySpan<char> s, out TaskId result)sReadOnlySpan<char>resultTaskIdpublic static bool TryParse(string? s, IFormatProvider? provider, out TaskId result)sstring?providerIFormatProvider?resultTaskIdpublic static bool TryParse(string? s, out TaskId result)sstring?resultTaskIdpublic static bool operator ==(TaskId left, TaskId right)leftTaskIdrightTaskIdpublic static explicit operator TaskId(string value)valuestringpublic static explicit operator string(TaskId value)valueTaskIdpublic static bool operator !=(TaskId left, TaskId right)leftTaskIdrightTaskId