WebPartManager.SkinID 属性

定义

获取或设置一个空字符串 (""),使 WebPartManager 控件不能应用任何外观。Gets or sets an empty string ("") so that no skin can be applied to the WebPartManager control.

public:
 virtual property System::String ^ SkinID { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public override string SkinID { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.SkinID : string with get, set
Public Overrides Property SkinID As String

属性值

String

一个空字符串,该字符串防止 WebPartManager 控件使用指定给它的外观。An empty string that prevents the WebPartManager control from having a skin assigned to it.

属性

例外

尝试设置该属性值。An attempt was made to set the property value.

注解

SkinID属性重写继承的 Control.SkinID 属性,以防止 WebPartManager 控件(这是不可见的控件)使用外观。The SkinID property overrides the inherited Control.SkinID property to prevent the WebPartManager control, which is an invisible control, from using skins. 属性的实现会阻止通过从访问器返回空字符串来分配外观 get ,并且如果尝试在访问器中设置值,则总是引发异常 setThe implementation of the property prevents a skin from being assigned by always returning an empty string from the get accessor, and always throwing an exception if there is an attempt to set a value in the set accessor.

适用于

另请参阅