找回密码
 立即注册
搜索
查看: 381|回复: 0

[求助].Net中用宏控制SourceSafe

[复制链接]

21

主题

327

回帖

470

积分

中级会员

积分
470
发表于 2005-9-29 15:55:26 | 显示全部楼层 |阅读模式
[Code]
Dim fullname As String = ActiveDocument().FullName()
Dim fname As String = ActiveDocument().Name()
        
Dim scc As SourceControl = DTE.SourceControl
If Not (scc Is Nothing) Then
   If scc.IsItemUnderSCC(fullname) Then
       If Not scc.IsItemCheckedOut(fullname) Then
          Dim bCheckOut As Boolean = scc.CheckOutItem(fname)
       End If
    End If
End If
[/Code]
Visual Studio .NET 2003中,如上,bCheckOut返回True,但文档不能check out.

哪位指点一下?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|海浩社区

GMT+8, 2025-9-18 03:14 , Processed in 0.084193 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表