This documentation is archived and is not being maintained.

TemplatedControlDesigner.GetCachedTemplateEditingVerbs Method

Gets the cached template editing verbs.

[Visual Basic]
Protected MustOverride Function GetCachedTemplateEditingVerbs() As _
   _
   TemplateEditingVerb()
[C#]
protected abstract TemplateEditingVerb
   
   GetCachedTemplateEditingVerbs();
[C++]
protected: virtual TemplateEditingVerb*
   GetCachedTemplateEditingVerbs() 
    = 0;
[JScript]
protected abstract function GetCachedTemplateEditingVerbs() :
   TemplateEditingVerb
   ;

Return Value

An array of TemplateEditingVerb objects, if any.

Example

[Visual Basic] The following code example overrides the GetCachedTemplateEditingVerbs method. It checks whether any TemplateEditingVerb objects in an array have changed and, if one or more has, it destroys the array and creates a new one for use with the designer class associated with this method.

[Visual Basic] 
' 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] No example is available for C#, C++, or JScript. To view a Visual Basic example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

TemplatedControlDesigner Class | TemplatedControlDesigner Members | System.Web.UI.Design Namespace

Show: