Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

UnloadBeforeCopy Property

Visual Studio .NET 2003

Specifies whether or not to unload the Internet Server Application Programming Interface (ISAPI) extension or extensions associated with the virtual directory before deploying.

[Visual Basic .NET]
Public Property UnloadBeforeCopy() As Boolean
[Visual Basic 6]
Property Get UnloadBeforeCopy() As Boolean
Property Let UnloadBeforeCopy( _
   ByVal NewValue As Boolean _
HRESULT __stdcall get_UnloadBeforeCopy(
   /* [out, retval] */ VARIANT_BOOL* retVal
HRESULT __stdcall put_UnloadBeforeCopy(
   /* [in] */ VARIANT_BOOL NewValue
public bool UnloadBeforeCopy {get; set;}
[JScript .NET]
public function get UnloadBeforeCopy() : Boolean
public function set UnloadBeforeCopy(
   NewValue : Boolean


If this property is set to true and the ISAPI extension is running in the IIS process, the WWW publishing service is reset; otherwise, only the virtual directory specified by the VirtualDirectoryName property is affected.


The following sample code uses the UnloadBeforeCopy property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE

Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
   Sub Main()
      Dim prj As VCProject
      Dim cfgs, tools As IVCCollection
      Dim cfg As VCConfiguration
      Dim wdt As VCWebDeploymentTool
      prj = DTE.Solution.Projects.Item(1).Object
      cfgs = prj.Configurations
      cfg = cfgs.Item(1)
      wdt = cfg.Tools("VCWebDeploymentTool")
      wdt.UnloadBeforeCopy = True
   End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCWebDeploymentTool Object

© 2015 Microsoft