Summary
Deletes a virtual directory from a given web site hosted on Internet
Information Server.
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Tasks .Web - Base Types
-
- Task
- WebBase
graph BT
Type-->Base0["WebBase"]
click Base0 "/api/NAnt.Contrib.Tasks.Web/WebBase"
Base0-->Base1["Task"]
Type["DeleteVirtualDirectory"]
class Type type-node
Syntax
[TaskName("deliisdir")]
public class DeleteVirtualDirectory : WebBase
Examples
Delete a virtual directory named Temp from the web site running
on port 80 of the local machine. If more than one web site is
running on port 80, take the web site bound to the hostname
localhost if existent or bound to no hostname otherwise.
<deliisdir vdirname="Temp" />
Delete a virtual directory named Temp from the website running
on port 81 of machine MyHost.
<deliisdir iisserver="MyHost:81" vdirname="Temp" />
Attributes
| Type | Description |
|---|---|
| TaskName |
Properties
| Name | Value | Summary |
|---|---|---|
| ApplicationPath | string |
Inherited from WebBase
|
| Server | string |
The IIS server, which can be specified using the format
[host]:[port].
The default is localhost:80.
Inherited from WebBase
|
| ServerPath | string |
Inherited from WebBase
|
| VdirPath | string |
Inherited from WebBase
|
| Version | WebBase |
Gets the version of IIS corresponding with the current OS.
Inherited from WebBase
|
| VirtualDirectory | string |
Name of the IIS virtual directory.
Inherited from WebBase
|
| Website | string |
The website on the IIS server.
Inherited from WebBase
|
Methods
| Name | Value | Summary |
|---|---|---|
| CheckIISSettings |
void |
Inherited from WebBase
|
| DirectoryEntryExists |
bool |
Inherited from WebBase
|
| ExecuteTask |
void |
