IInterpolatedStringHandlerCreationOperation.HandlerAppendCallsReturnBool Property
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.
True if the AppendLiteral or AppendFormatted calls in nested Parts return bool
. When that is true, each part
will be conditional on the return of the part before it, only being executed when the Append call returns true. False otherwise.
public bool HandlerAppendCallsReturnBool { get; }
member this.HandlerAppendCallsReturnBool : bool
Public ReadOnly Property HandlerAppendCallsReturnBool As Boolean
Property Value
Remarks
when this is true and HandlerCreationHasSuccessParameter is true, then the first part in nested Parts is conditionally run. If this is true and HandlerCreationHasSuccessParameter is false, then the first part is unconditionally run.
Just because this is true or false does not guarantee that all Append calls actually do return boolean values, as there could be dynamic calls or errors. It only governs what the compiler was expecting, based on the first calls it did see.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈