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 _
) 
[C++]
HRESULT __stdcall get_ApplicationProtection(
   /* [out, retval] */ eAppProtectionOption* retVal
);
HRESULT __stdcall put_ApplicationProtection(
   /* [in] */ eAppProtectionOption NewValue
);
[C#]
public eAppProtectionOption ApplicationProtection {get; set;}
[JScript .NET]
public function get ApplicationProtection() : eAppProtectionOption
public function set ApplicationProtection(
   NewValue : eAppProtectionOption
)

Remarks

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.

Example

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

Show:
© 2014 Microsoft