IInterpolatedStringTextOperation 接口

定义

表示内插字符串操作的构成字符串文本部分。

当前用法: (1) C# 内插字符串文本。 (2) VB 内插字符串文本。

public interface class IInterpolatedStringTextOperation : Microsoft::CodeAnalysis::Operations::IInterpolatedStringContentOperation
public interface IInterpolatedStringTextOperation : Microsoft.CodeAnalysis.Operations.IInterpolatedStringContentOperation
type IInterpolatedStringTextOperation = interface
    interface IInterpolatedStringContentOperation
    interface IOperation
Public Interface IInterpolatedStringTextOperation
Implements IInterpolatedStringContentOperation
实现

注解

此节点与以下操作类型相关联:

此接口保留供其关联的 API 实现。 我们保留将来更改的权利。

属性

ChildOperations

此操作的子操作的可枚举值。

(继承自 IOperation)
Children
已过时.

此操作的子操作数组。 已弃用:请使用 ChildOperations

(继承自 IOperation)
ConstantValue

如果运算是计算结果为常量值的表达式, HasValue 则 为 true,并且 Value 是表达式的值。 否则, HasValue 为 false。

(继承自 IOperation)
IsImplicit

如果编译器生成 /由编译器代码隐式计算,则设置为 True

(继承自 IOperation)
Kind

标识操作的类型。

(继承自 IOperation)
Language

IOperation 的源语言。 可能的值为 CSharpVisualBasic

(继承自 IOperation)
Parent

将此操作作为子级的 IOperation。 根的 Null。

(继承自 IOperation)
SemanticModel

用于生成此操作的可选语义模型。 对于使用 API 和对分析器进行的操作回调从源 GetOperation(SyntaxNode, CancellationToken) 生成的操作为非 null。 对于 中的操作, ControlFlowGraph为 Null。

(继承自 IOperation)
Syntax

已分析以生成操作的语法。

(继承自 IOperation)
Text

文本内容。

Type

操作的结果类型;如果操作不生成结果,则为 null。

(继承自 IOperation)

方法

Accept(OperationVisitor)

表示内插字符串操作的构成字符串文本部分。

当前用法: (1) C# 内插字符串文本。 (2) VB 内插字符串文本。

(继承自 IOperation)
Accept<TArgument,TResult>(OperationVisitor<TArgument,TResult>, TArgument)

表示内插字符串操作的构成字符串文本部分。

当前用法: (1) C# 内插字符串文本。 (2) VB 内插字符串文本。

(继承自 IOperation)

扩展方法

Descendants(IOperation)

按计算顺序返回给定 operation 的所有后代运算。

DescendantsAndSelf(IOperation)

返回给定 operation 的所有后代运算,包括按计算顺序给定 operation 的 。

适用于