Export (0) Print
Expand All

ElementTagName Property

Gets the XML tag name of the current element.

Namespace:  Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public string ElementTagName { get; }

Property Value

Type: System..::..String
The XML tag name of the current element.

The ElementTagName property value is the value of the ConfigurationAttributeSchema..::..Name property.

The following example gets the element tag from the ConfigurationElement object.

PropertyBag elementBag = new PropertyBag();
elementBag[ConfigurationDemoGlobals.SchemaName] = 
    moduleproviderelement.Schema.Name;
elementBag[ConfigurationDemoGlobals.ElementTagName] = 
    moduleproviderelement.ElementTagName;


Community Additions

ADD
Show:
© 2014 Microsoft