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 方法使設計師能在設計時環境中對條件提出主張。