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

ApplicationProtection Property

Visual Studio .NET 2003

The level of process isolation used by the virtual directory.

[Visual Basic .NET]
Public Property ApplicationProtection() As eAppProtectionOption
[Visual Basic 6]
Property Get ApplicationProtection() As eAppProtectionOption
Property Let ApplicationProtection( _
   ByVal NewValue As eAppProtectionOption _
HRESULT __stdcall get_ApplicationProtection(
   /* [out, retval] */ eAppProtectionOption* retVal
HRESULT __stdcall put_ApplicationProtection(
   /* [in] */ eAppProtectionOption NewValue
public eAppProtectionOption ApplicationProtection {get; set;}
[JScript .NET]
public function get ApplicationProtection() : eAppProtectionOption
public function set ApplicationProtection(
   NewValue : eAppProtectionOption


This property can be one of the eAppProtectionOption values.

Note   Medium isolation is treated as high isolation on Windows NT 4.0 because that version of Internet Information Services does not support medium isolation.


The following sample code uses the ApplicationProtection 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.ApplicationProtection = eAppProtectionOption.eAppProtectHigh
   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