SectionDefinitionCollection.Add(String) Method

Definition

Adds a new section definition to the collection.

public:
 Microsoft::Web::Administration::SectionDefinition ^ Add(System::String ^ sectionName);
public Microsoft.Web.Administration.SectionDefinition Add (string sectionName);
member this.Add : string -> Microsoft.Web.Administration.SectionDefinition
Public Function Add (sectionName As String) As SectionDefinition

Parameters

sectionName
String

The name of the section to be added.

Returns

The SectionDefinition object that this method created.

Remarks

The name of the section must be unique to the SectionGroup object that this SectionDefinitionCollection object belongs to.

Applies to