Table of Contents

Class IisServer

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a Microsoft IIS Server.

[SupportsClientScan]
[SupportsSupportProvisions]
public class IisServer : BaseConfigurationType
Inheritance
IisServer
Inherited Members

Constructors

IisServer()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.IisServer class.

public IisServer()

Properties

ApplicationPools

Gets or sets the application pools.

public IisApplicationPools ApplicationPools { get; set; }

Property Value

IisApplicationPools

Applications

Gets or sets the applications configured in all sites.

public IisApplications Applications { get; set; }

Property Value

IisApplications

Host

Gets or sets the host information.

public IisServerHostInformation Host { get; set; }

Property Value

IisServerHostInformation

IsUnsupportedClientVersion

Gets whether the item was scanned using an unsupported client version.

[Browsable(false)]
public bool IsUnsupportedClientVersion { get; }

Property Value

bool

Platform

Gets or sets the platform information.

public IisServerPlatformInformation Platform { get; set; }

Property Value

IisServerPlatformInformation

ServerCertificates

Gets or sets the server certificates.

public IisServerCertificates ServerCertificates { get; set; }

Property Value

IisServerCertificates

ServerConfiguration

Gets or sets the server configuration.

public IisServerConfiguration ServerConfiguration { get; set; }

Property Value

IisServerConfiguration

Sites

Gets or sets the sites.

public IisSites Sites { get; set; }

Property Value

IisSites

Type

Gets or sets the type of item that this represents - for example "NetworkSwitch" or "WindowsServer".

public override ItemType Type { get; set; }

Property Value

ItemType

VirtualDirectories

Gets or sets the virtual directories configured in all sites.

public IisVirtualDirectories VirtualDirectories { get; set; }

Property Value

IisVirtualDirectories

Methods

Clone()

Creates a clone of this CENTREL.XIA.Configuration.Types.IisServer.

public IisServer Clone()

Returns

IisServer

A clone of this CENTREL.XIA.Configuration.Types.IisServer.

FindByIdentifier(Guid)

Returns the site, application, or virtual directory with the specified identifier, or null if none are found.

public IisVirtualDirectoryBase FindByIdentifier(Guid identifier)

Parameters

identifier Guid

The identifier of the site, application, or virtual directory to locate.

Returns

IisVirtualDirectoryBase

The site, application, or virtual directory with the specified identifier.

FindChildApplications(IisSite)

Finds the child applications for the specified site.

public IisApplicationCollection FindChildApplications(IisSite site)

Parameters

site IisSite

The site for which the child applications are to be returned.

Returns

IisApplicationCollection

The child applications for the specified site.

FindChildVirtualDirectories(IisSite)

Finds the child virtual directories and applications for the specified site.

public IisVirtualDirectoryBaseCollection FindChildVirtualDirectories(IisSite site)

Parameters

site IisSite

The site for which the child virtual directories and applications are to be returned.

Returns

IisVirtualDirectoryBaseCollection

The child virtual directories and applications for the specified site.

FindChildVirtualDirectories(string, string)

Finds the immediate child virtual directories and applications for the specified site with the specified parent virtual path.

public IisVirtualDirectoryBaseCollection FindChildVirtualDirectories(string siteName, string parentVirtualPath)

Parameters

siteName string

The name of the site - for example "Default Web Site".

parentVirtualPath string

The parent virtual path.

Returns

IisVirtualDirectoryBaseCollection

The immediate child virtual directories and applications for the specified site with the specified parent virtual path.

FindChildVirtualDirectories(string, string, bool)

Finds the child virtual directories and applications for the specified site with the specified parent virtual path.

public IisVirtualDirectoryBaseCollection FindChildVirtualDirectories(string siteName, string parentVirtualPath, bool recurse)

Parameters

siteName string

The name of the site - for example "Default Web Site".

parentVirtualPath string

The parent virtual path.

recurse bool

Determines whether to recurse the child directories.

Returns

IisVirtualDirectoryBaseCollection

The child virtual directories and applications for the specified site with the specified parent virtual path.

FindChildVirtualDirectoriesOnly(IisSite)

Finds the child virtual directories (not applications) for the specified site.

public IisVirtualDirectoryCollection FindChildVirtualDirectoriesOnly(IisSite site)

Parameters

site IisSite

The site for which the child virtual directories (not applications) are to be returned.

Returns

IisVirtualDirectoryCollection

The child virtual directories (not applications) for the specified site.

FromXml(string)

Returns a CENTREL.XIA.Configuration.Types.IisServer object from the specified XML data

public static IisServer FromXml(string Xml)

Parameters

Xml string

The XML representation of the IIS server object.

Returns

IisServer

A CENTREL.XIA.Configuration.Types.IisServer object.

LoadXml(string)

Returns the CENTREL.XIA.Configuration.Types.IisServer from the specified XML file.

public static IisServer LoadXml(string filePath)

Parameters

filePath string

The absolute path of the XML file to load.

Returns

IisServer

A CENTREL.XIA.Configuration.Types.IisServer from the specified XML.