IAttributeAccessor.GetAttribute メソッド
アセンブリ: System.Web (system.web.dll 内)
構文Dim instance As IAttributeAccessor Dim key As String Dim returnValue As String returnValue = instance.GetAttribute(key)
- key
サーバー コントロール属性の名前を表す String。
指定した属性の値。
使用例GetAttribute メソッドを実装する方法を次のコード例に示します。
' Implement the GetAttribute method for the control. When ' this method is called from a page, the values for the control's ' properties can be displayed in the page. Public Function GetAttribute(name As String) As String Implements IAttributeAccessor.GetAttribute Return CType(ViewState(name), String) End Function 'GetAttribute
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- IAttributeAccessor.GetAttribute メソッドのページへのリンク