HtmlEmptyTagControlBuilder.HasBody 方法

定義

指示以 HtmlEmptyTagControlBuilder 控制項建置的控制項沒有結尾標記。

public:
 override bool HasBody();
public override bool HasBody ();
override this.HasBody : unit -> bool
Public Overrides Function HasBody () As Boolean

傳回

所有情況下都是 false

備註

方法 HasBody 會覆寫基類的 HasBody 方法,以一律傳回 false ,因為 HtmlEmptyTagControlBuilder 類別代表沒有結束記號的控制項。 類別 HasBodyControlBuilder 方法會判斷控制項是否同時具有開頭和結束記號。

適用於

另請參閱