CommaDelimitedStringCollection.Remove Method (String)

 
System_CAPS_noteNote

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

Removes a string element from the collection.

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

public void Remove(
	string value
)

Parameters

value
Type: System.String

The string to remove.

This method causes the IsModified property to be set to true.

The following code example demonstrates how to use the Remove method. This code example is part of a larger example provided for the CommaDelimitedStringCollection class overview.

// Remove an element of the collection.
myStrCollection.Remove("userNameX");

.NET Framework
Available since 2.0
Return to top
Show: