ConfigurationElementCollection.ClearElementName Property

Gets or sets the name for the ConfigurationElement to associate with the clear operation in the ConfigurationElementCollection when overridden in a derived class.

Namespace: System.Configuration
Assembly: System.Configuration (in system.configuration.dll)

'Declaration
Protected Friend Property ClearElementName As String
'Usage
Dim value As String

value = Me.ClearElementName

Me.ClearElementName = value
/** @property */
protected String get_ClearElementName ()

/** @property */
protected void set_ClearElementName (String value)

protected internal function get ClearElementName () : String

protected internal function set ClearElementName (value : String)

Not applicable.

Property Value

The name of the element.

Exception typeCondition

ArgumentException

The selected value starts with the reserved prefix "config" or "lock".

The following code example shows how to use the ClearElementName property.


Public Shadows Property ClearElementName() As String 
    Get
        Return MyBase.ClearElementName
    End Get 
    Set
        MyBase.AddElementName = value
    End Set 
End Property

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: