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
Applications
Gets or sets the applications configured in all sites.
public IisApplications Applications { get; set; }
Property Value
Host
Gets or sets the host information.
public IisServerHostInformation Host { get; set; }
Property Value
IsUnsupportedClientVersion
Gets whether the item was scanned using an unsupported client version.
[Browsable(false)]
public bool IsUnsupportedClientVersion { get; }
Property Value
Platform
Gets or sets the platform information.
public IisServerPlatformInformation Platform { get; set; }
Property Value
ServerCertificates
Gets or sets the server certificates.
public IisServerCertificates ServerCertificates { get; set; }
Property Value
ServerConfiguration
Gets or sets the server configuration.
public IisServerConfiguration ServerConfiguration { get; set; }
Property Value
Sites
Gets or sets the sites.
public IisSites Sites { get; set; }
Property Value
Type
Gets or sets the type of item that this represents - for example "NetworkSwitch" or "WindowsServer".
public override ItemType Type { get; set; }
Property Value
VirtualDirectories
Gets or sets the virtual directories configured in all sites.
public IisVirtualDirectories VirtualDirectories { get; set; }
Property Value
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
GuidThe 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
IisSiteThe 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
IisSiteThe 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
stringThe name of the site - for example "Default Web Site".
parentVirtualPath
stringThe 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
stringThe name of the site - for example "Default Web Site".
parentVirtualPath
stringThe parent virtual path.
recurse
boolDetermines 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
IisSiteThe 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
stringThe 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
stringThe absolute path of the XML file to load.
Returns
- IisServer
A CENTREL.XIA.Configuration.Types.IisServer from the specified XML.