次の方法で共有


Project Class

 

Manages a collection of ProjectItem items and provides a BinaryManager to manage access to binary output.

Namespace:   Microsoft.VisualStudio.Tools.Applications
Assembly:  Microsoft.VisualStudio.Tools.Applications (in Microsoft.VisualStudio.Tools.Applications.dll)

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Tools.Applications.Project

Syntax

public sealed class Project : IDisposable
public ref class Project sealed : IDisposable
[<Sealed>]
type Project = 
    class
        interface IDisposable
    end
Public NotInheritable Class Project
    Implements IDisposable

Properties

Name Description
System_CAPS_pubproperty BinaryManager

Gets the BinaryManager for this Project.

System_CAPS_pubproperty CodeName

Gets the code name of the Project. This is the name used to refer to the Project in user code. Since it will be used in code, it must be a valid identifier.

System_CAPS_pubproperty DisplayName

Gets the display name of the Project. This is the name displayed for the Project in the IDE. Since it will not be used in code, it need not be a valid identifier.

System_CAPS_pubproperty HasBreakpoints

Determines if any breakpoints are set for the Project.

System_CAPS_pubproperty Id

Gets the identifier of the Project.

System_CAPS_pubproperty IsDirty

Gets the dirty (unsaved) state of the project.

Methods

Name Description
System_CAPS_pubmethod AddFile(String, Stream)

Adds a new file to the Project.

System_CAPS_pubmethod ClearBreakpoints()

Clears all the Breakpoint settings from items in the Project.

System_CAPS_pubmethod Dispose()

Closes the Project and removes it from its parent Session.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetProjectItem(String)

Gets the ProjectItem with the specified name.

System_CAPS_pubmethod GetProjectItemExists(String)

Determines if the ProjectItem exists in the Project.

System_CAPS_pubmethod GetProjectItems()

Gets a collection of items of type ProjectItem in a Project.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Save(IProjectStorage)

Saves the Project into projectStorage.

System_CAPS_pubmethod StartDebugging()

Requests the IDE to start debugging.

System_CAPS_pubmethod StopDebugging()

Requests the IDE to stop debugging.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent ProjectChangeCommitted

Occurs when a pending change to the Project is committed.

System_CAPS_pubevent ProjectChanged

Occurs when the dirty state of the Project changes.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.VisualStudio.Tools.Applications Namespace

Return to top