キャッシュされたテンプレート編集動詞を取得します。
Protected MustOverride Function GetCachedTemplateEditingVerbs() As _
_
TemplateEditingVerb()
[C#]
protected abstract TemplateEditingVerb
GetCachedTemplateEditingVerbs();
[C++]
protected: virtual TemplateEditingVerb*
GetCachedTemplateEditingVerbs()
= 0;
[JScript]
protected abstract function GetCachedTemplateEditingVerbs() :
TemplateEditingVerb
;
戻り値
TemplateEditingVerb オブジェクトの配列 (存在する場合)。
使用例
[Visual Basic] GetCachedTemplateEditingVerbs メソッドをオーバーライドする例を次に示します。このコードは、配列内の TemplateEditingVerb オブジェクトが変更されていないかどうかを調べ、いずれか 1 つでも変更されている場合は、この配列を破棄し、このメソッドに関連付けられているデザイナ クラスでの使用を目的とした新しい配列を作成します。
' Override the GetCachedTemplateEditingVerbs method to check
' whether the verbs have been changed. If they have, a new
' collection of verbs is created for use with this designer.
Protected Overrides Function GetCachedTemplateEditingVerbs() As TemplateEditingVerb()
If templateVerbsDirty = True Then
DisposeTemplateVerbs()
templateVerbs = New TemplateEditingVerb(1) {}
templateVerbs(0) = New TemplateEditingVerb("Item Template", 0, Me)
templateVerbsDirty = False
End If
Return templateVerbs
End Function
[C#, C++, JScript] C#、C++、および JScript のサンプルはありません。Visual Basic のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ
.NET Framework セキュリティ:
- 直前の呼び出し元の完全信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細の参照先 : 部分信頼コードからのライブラリの使用
参照
TemplatedControlDesigner クラス | TemplatedControlDesigner メンバ | System.Web.UI.Design 名前空間