IComponentDesignerDebugService.Assert(Boolean, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在设计时环境中的条件上断言。
public:
void Assert(bool condition, System::String ^ message);
public void Assert(bool condition, string message);
abstract member Assert : bool * string -> unit
Public Sub Assert (condition As Boolean, message As String)
参数
- condition
- Boolean
true 如果阻止 message 显示,则为 :否则为 false。
- message
- String
要显示的消息。
注解
该方法 Assert 使设计器能够在设计时环境中断言条件。