CodeGeneratorContext.ChangeStatementCollector 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
分配新语句收集器并返回用于还原旧语句收集器的可释放操作。
public IDisposable ChangeStatementCollector(Action<string,System.CodeDom.CodeLinePragma> collector);
member this.ChangeStatementCollector : Action<string, System.CodeDom.CodeLinePragma> -> IDisposable
Public Function ChangeStatementCollector (collector As Action(Of String, CodeLinePragma)) As IDisposable
参数
- collector
- Action<String,CodeLinePragma>
新语句收集器。
返回
用于还原旧语句收集器的可释放操作。