VCConfiguration.UpToDate 属性

定义

获取一个值,该值指示当前配置的生成状态是否是最新的。

public:
 property bool UpToDate { bool get(); };
public:
 property bool UpToDate { bool get(); };
[System.Runtime.InteropServices.DispId(731)]
public bool UpToDate { [System.Runtime.InteropServices.DispId(731)] get; }
[<System.Runtime.InteropServices.DispId(731)>]
[<get: System.Runtime.InteropServices.DispId(731)>]
member this.UpToDate : bool
Public ReadOnly Property UpToDate As Boolean

属性值

Boolean

true 如果当前配置的生成状态为最新,则为; 否则为。否则为 false

属性

示例

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

下面的示例代码使用 UpToDate 集成开发环境中的属性 (IDE) :

' add reference to Microsoft.VisualStudio.VCProjectEngine.  
Imports EnvDTE  
Imports Microsoft.VisualStudio.VCProjectEngine  

Public Module Module1  
    Sub Test()  
        Dim Test As Boolean  
        Dim prj As VCProject  
        Dim cfgs As IVCCollection  
        Dim cfg As VCConfiguration  
        Dim MyDbg As VCDebugSettings  
        prj = DTE.Solution.Projects.Item(1).Object  
        cfgs = prj.Configurations  
        cfg = cfgs.Item(1)  
        Test = cfg.UpToDate  
    End Sub  
End Module  

适用于