NameTypeElement Class

Associates a name and a managed type.

Syntax

class NameTypeElement : CollectionElement  

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the NameTypeElement class.

Name Description
Name A required unique read/write string value that specifies a name. The key property.
Type A read/write string value that specifies a managed type associated with the value in the Name property. Note: The type reference is formed as follows (items in brackets are not required): Namespace.Typename, Assemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z] (for example, "ExampleNamespace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, Culture=neutral, PublicKeyToken=%MICROSOFT_PUBLICKEY%").

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the Providers array property of the ProvidersSettings class, in the Switches array property of the SwitchSettings class, and in the SchemaImporterExtensions array property of the SchemaImporterExtensionsSection class.

Note

If you update the Name property in a collection of providers, only the Name and Type attributes of the provider will be saved to the configuration file. Other previously saved provider attributes will no longer appear in the configuration file.

Inheritance Hierarchy

CollectionElement

NameTypeElement

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF file WebAdministration.mof

See Also

CollectionElement Class
ConfigProtectedDataSection Class
MembershipSection Class
ProvidersSettings Class
RoleManagerSection Class
SchemaImporterExtensionsSection Class
SwitchSettings Class