WebDirectoryDelete Class

MSBuild

Deletes a web directory on a local or remote machine with IIS installed. The default is to delete the web directory on the local machine. If connecting to a remote machine, you can specify the Username and Password for the task to run under.


Namespace: MSBuild.Community.Tasks.IIS
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class WebDirectoryDelete
    Inherits WebBase
C#
public class WebDirectoryDelete : WebBase
C++
ref class WebDirectoryDelete : WebBase
J#
public class WebDirectoryDelete extends WebBase
JScript
public class WebDirectoryDelete extends WebBase

Example

Deletes a web directory on the local machine.

 Copy Code
            <WebDirectoryDelete VirtualDirectoryName="MyVirDir" />
            

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      MSBuild.Community.Tasks.IIS.WebBase
         MSBuild.Community.Tasks.IIS.WebDirectoryDelete

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.