共用方式為


VCCodeUnion.Project Property

Gets the Project associated with the object.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

'宣告
ReadOnly Property Project As Project
    Get
Project Project { get; }
property Project^ Project {
    Project^ get ();
}
abstract Project : Project
function get Project () : Project

Property Value

Type: EnvDTE.Project
A Project object.

Remarks

The Project property represents the project to which the item belongs.

.NET Framework Security

See Also

Reference

VCCodeUnion Interface

Microsoft.VisualStudio.VCCodeModel Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples