XhtmlControlAdapter.ConditionalRenderCustomAttribute 方法

定義

從相關控制項取得指定自訂屬性的值,若符合特定條件,則在下一個元素上渲染。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

多載

名稱 Description
ConditionalRenderCustomAttribute(XhtmlMobileTextWriter, String)

從相關控制項取得指定名稱屬性的值,若符合特定條件,則在下一個元素中渲染該名稱。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

ConditionalRenderCustomAttribute(XhtmlMobileTextWriter, String, String)

若符合特定條件,則包含一個自訂屬性,並在下一個要渲染的元素中設定指定名稱與值。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

ConditionalRenderCustomAttribute(XhtmlMobileTextWriter, String)

從相關控制項取得指定名稱屬性的值,若符合特定條件,則在下一個元素中渲染該名稱。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

protected:
 virtual void ConditionalRenderCustomAttribute(System::Web::UI::MobileControls::Adapters::XhtmlAdapters::XhtmlMobileTextWriter ^ writer, System::String ^ attributeName);
protected virtual void ConditionalRenderCustomAttribute(System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter writer, string attributeName);
abstract member ConditionalRenderCustomAttribute : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter * string -> unit
override this.ConditionalRenderCustomAttribute : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter * string -> unit
Protected Overridable Sub ConditionalRenderCustomAttribute (writer As XhtmlMobileTextWriter, attributeName As String)

參數

writer
XhtmlMobileTextWriter

XhtmlMobileTextWriter用來渲染伺服器的物件控制客戶端瀏覽器上的內容。

attributeName
String

屬性的名稱。

備註

如果屬性名稱不是空字串(“”),且控制項具有指定的屬性,則該屬性會被渲染。

此方法主要由 .NET Framework 內部使用。

另請參閱

適用於

ConditionalRenderCustomAttribute(XhtmlMobileTextWriter, String, String)

若符合特定條件,則包含一個自訂屬性,並在下一個要渲染的元素中設定指定名稱與值。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

protected:
 virtual void ConditionalRenderCustomAttribute(System::Web::UI::MobileControls::Adapters::XhtmlAdapters::XhtmlMobileTextWriter ^ writer, System::String ^ attributeName, System::String ^ markupAttributeName);
protected virtual void ConditionalRenderCustomAttribute(System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter writer, string attributeName, string markupAttributeName);
abstract member ConditionalRenderCustomAttribute : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter * string * string -> unit
override this.ConditionalRenderCustomAttribute : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlMobileTextWriter * string * string -> unit
Protected Overridable Sub ConditionalRenderCustomAttribute (writer As XhtmlMobileTextWriter, attributeName As String, markupAttributeName As String)

參數

writer
XhtmlMobileTextWriter

XhtmlMobileTextWriter用來渲染伺服器的物件控制客戶端瀏覽器上的內容。

attributeName
String

屬性的名稱。

markupAttributeName
String

屬性的 XHTML 標記名稱。

備註

attributeNamemarkupAttributeName 都不是空字串(“”),且控制項具有指定的屬性,則該屬性會被渲染。 使用此方法在渲染元素中提供與控制中屬性或屬性名稱不同的標記屬性。

此方法主要由 .NET Framework 內部使用。

另請參閱

適用於