WebPartManagerInternals.SetIsClosed(WebPart, Boolean) 方法

定义

设置 IsClosed 控件的 WebPart 属性。Sets the IsClosed property of a WebPart control.

public:
 void SetIsClosed(System::Web::UI::WebControls::WebParts::WebPart ^ webPart, bool isClosed);
public void SetIsClosed (System.Web.UI.WebControls.WebParts.WebPart webPart, bool isClosed);
member this.SetIsClosed : System.Web.UI.WebControls.WebParts.WebPart * bool -> unit
Public Sub SetIsClosed (webPart As WebPart, isClosed As Boolean)

参数

webPart
WebPart

此方法为其设置 WebPart 属性的 IsClosedA WebPart for which this method sets the IsClosed property.

isClosed
Boolean

指示 WebPart 是否已在网页上关闭的布尔值。A Boolean value that indicates whether a WebPart is closed on a page.

注解

SetIsClosed方法设置 IsClosed 的属性 webPartThe SetIsClosed method sets the IsClosed property of webPart. 此方法实际上不会关闭 webPart ; 它仅设置指示是否已关闭的属性 webPartThis method does not actually close webPart; it only sets the property that indicates whether webPart is closed.

适用于

另请参阅