VCFileConfiguration.OutputUpToDate 属性

获取一个值,该值指示指定文件的输出是否为最新。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
ReadOnly Property OutputUpToDate As Boolean
bool OutputUpToDate { get; }
property bool OutputUpToDate {
    bool get ();
}
abstract OutputUpToDate : bool with get
function get OutputUpToDate () : boolean

属性值

类型:System.Boolean
如果输出为最新,则为 true;否则为 false。

备注

有关如何编译和运行此示例的信息,请参见 如何:编译项目模型扩展性示例代码

示例

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
        Dim file, file2 As VCFile
        Dim col As IVCCollection
        Dim fileconfig As VCFileConfiguration
        Dim prj As VCProject
        prj = DTE.Solution.Projects.Item(1).Object
        col = prj.Files
        file = col.Item(1)
        col = file.FileConfigurations
        fileconfig = col.Item("Debug|Win32")
        MsgBox("Output file up-to-date? " & _
          fileconfig.OutputUpToDate.ToString)
    End Sub
End Module

.NET Framework 安全性

请参见

参考

VCFileConfiguration 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间