Share via


NameTypeElement Class [IIS 7 and higher]

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.

NoteNote:
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

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

CollectionElement Class [IIS 7 and higher]

ConfigProtectedDataSection Class [IIS 7 and higher]

MembershipSection Class [IIS 7 and higher]

ProvidersSettings Class [IIS 7 and higher]

RoleManagerSection Class [IIS 7 and higher]

SchemaImporterExtensionsSection Class [IIS 7 and higher]

SwitchSettings Class [IIS 7 and higher]