企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
# Compiler Error CS1029 #error:“text” 显示用 [#error](https://msdn.microsoft.com/zh-cn/library/x5hedts0.aspx) 指令定义的错误文本。 下面的示例显示如何创建用户定义的错误: ``` // CS1029.cs class Sample { static void Main() { #error Let's give an error here // CS1029 } } ```