Поделиться через


CodeFolder Interface

Represents the App_Code folder, or a first-level child of the App_Code folder that is configured as a code folder.

Namespace:  VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

'Declaration
<GuidAttribute("58B5E6E3-C2D3-4D56-97EB-26DDA09323F7")> _
Public Interface CodeFolder
[GuidAttribute("58B5E6E3-C2D3-4D56-97EB-26DDA09323F7")]
public interface CodeFolder
[GuidAttribute(L"58B5E6E3-C2D3-4D56-97EB-26DDA09323F7")]
public interface class CodeFolder
[<GuidAttribute("58B5E6E3-C2D3-4D56-97EB-26DDA09323F7")>]
type CodeFolder =  interface end
public interface CodeFolder

The CodeFolder type exposes the following members.

Properties

  Name Description
Public property CodeModel Gets the CodeModel object for the code folder.
Public property ContainingProject Gets a reference to the project in the DTE object that contains this code folder.
Public property DTE Gets a reference to the DTE2 object that contains the project containing this code folder.
Public property FolderPath Gets the path and name for the folder.
Public property Language Gets the language configured for the folder.
Public property ProjectItem The project item for the code folder.

Top

Methods

  Name Description
Public method Remove Removes the <add directoryName="folderName"> node from the <codeSubDirectories> element of the <compilation> section of the Web.config file for this Web site.

Top

Remarks

For more information on configuring a subfolder in the App_Code folder as a code folder, see Shared Code Folders in ASP.NET Web Projects.

See Also

Reference

VsWebSite Namespace

VSWebSite

CodeFolders

Other Resources

compilation Element (ASP.NET Settings Schema)

codeSubDirectories Element for compilation (ASP.NET Settings Schema)

Shared Code Folders in ASP.NET Web Projects