DeviceSpecific.GetTemplate Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the template with the specified name. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public ITemplate GetTemplate(
	string templateName


Type: System.String

The name of the specified template.

Return Value

Type: System.Web.UI.ITemplate

The template with the specified templateName.

Returns null if the control is not templated, or if the template does not exist in the selected template set.

.NET Framework
Available since 1.1
Return to top