ExtensionElement Constructors

Definition

Initializes a new instance of the ExtensionElement class.

Overloads

ExtensionElement()

Initializes a new instance of the ExtensionElement class.

ExtensionElement(String)

Initializes a new instance of the ExtensionElement class with a specified name.

ExtensionElement(String, String)

Initializes a new instance of the ExtensionElement class with a specified name and type.

ExtensionElement()

Initializes a new instance of the ExtensionElement class.

C#
public ExtensionElement();

Applies to

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ExtensionElement(String)

Initializes a new instance of the ExtensionElement class with a specified name.

C#
public ExtensionElement(string name);

Parameters

name
String

A unique name of this configuration element.

Exceptions

name is null or empty.

Applies to

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ExtensionElement(String, String)

Initializes a new instance of the ExtensionElement class with a specified name and type.

C#
public ExtensionElement(string name, string type);

Parameters

name
String

A unique name of this configuration element.

type
String

The type of this configuration element.

Exceptions

type is null or empty.

-or-

name is null or empty.

Applies to

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1