TemplatedControlDesigner.GetTemplatePropertyParentType(String) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Varning
Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202
Hämtar typen av överordnad för mallegenskapen.
public:
virtual Type ^ GetTemplatePropertyParentType(System::String ^ templateName);
public virtual Type GetTemplatePropertyParentType(string templateName);
[System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")]
public virtual Type GetTemplatePropertyParentType(string templateName);
abstract member GetTemplatePropertyParentType : string -> Type
override this.GetTemplatePropertyParentType : string -> Type
[<System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member GetTemplatePropertyParentType : string -> Type
override this.GetTemplatePropertyParentType : string -> Type
Public Overridable Function GetTemplatePropertyParentType (templateName As String) As Type
Parametrar
- templateName
- String
Namnet på mallen som ska returnera typen av överordnad för.
Returer
Typen av objekt som har mallegenskapen.
- Attribut
Kommentarer
Note
Metoden GetTemplatePropertyParentType är föråldrad. Templates Använd egenskapen för samlingselementen TemplateGroups för att undersöka mallmetadata i en designer för mallbaserade kontroller.
Gäller för
Se även
- översikt över ASP.NET Control Designers