共用方式為


CompileAsOptions Enumeration

Used to select compile language option for .c and .cpp files.

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

Syntax

'宣告
Public Enumeration CompileAsOptions
public enum CompileAsOptions
public enum class CompileAsOptions
type CompileAsOptions
public enum CompileAsOptions

Members

Member name Description
compileAsDefault Default
compileAsC Compile as C Code (/TC)
compileAsCPlusPlus Compile as C++ Code (/TP)

Remarks

See /Tc, /Tp, /TC, /TP (Specify Source File Type) for more information. Used by the CompileAs property.

See Also

Reference

Microsoft.VisualStudio.VCProjectEngine Namespace