Szerkesztés

Megosztás a következőn keresztül:


DeviceSpecificChoiceControlBuilder.Init Method

Definition

Occurs when the server control is initialized, which is the first step in its life cycle. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 override void Init(System::Web::UI::TemplateParser ^ parser, System::Web::UI::ControlBuilder ^ parentBuilder, Type ^ type, System::String ^ tagName, System::String ^ id, System::Collections::IDictionary ^ attributes);
public override void Init (System.Web.UI.TemplateParser parser, System.Web.UI.ControlBuilder parentBuilder, Type type, string tagName, string id, System.Collections.IDictionary attributes);
override this.Init : System.Web.UI.TemplateParser * System.Web.UI.ControlBuilder * Type * string * string * System.Collections.IDictionary -> unit
Public Overrides Sub Init (parser As TemplateParser, parentBuilder As ControlBuilder, type As Type, tagName As String, id As String, attributes As IDictionary)

Parameters

parser
TemplateParser

The template parser object responsible for parsing the control.

parentBuilder
ControlBuilder

The control builder object responsible for building the parent control. If the ControlBuilder is not a DeviceSpecificControlBuilder object, an exception is thrown.

type
Type

The type that is assigned to the control that the builder will create.

tagName
String

The name of the tag to be built. This enables the builder to support multiple tag types.

id
String

The ID attribute that is assigned to the control.

attributes
IDictionary

The IDictionary object that holds the specified tag attributes.

Exceptions

parentBuilder is not a DeviceSpecificControlBuilder object.

Remarks

This method is called by the ASP.NET page framework during parsing and is not intended to be called directly in your code.

Applies to

See also