TfsGitRepositoryRefsCollection 类

表示一组特定 TFS Git 储存库的 refs。

继承层次结构

System.Object
  Microsoft.TeamFoundation.Git.Server.TfsGitRepositoryRefsCollection

命名空间:  Microsoft.TeamFoundation.Git.Server
程序集:  Microsoft.TeamFoundation.Git.Server(在 Microsoft.TeamFoundation.Git.Server.dll 中)

语法

声明
Public Class TfsGitRepositoryRefsCollection
public class TfsGitRepositoryRefsCollection

TfsGitRepositoryRefsCollection 类型公开以下成员。

方法

  名称 说明
公共方法 All 返回在储存库的所有 refs。
公共方法 AllRefHeads 返回在储存库的所有 ref 头。
公共方法 AllRefNotes 返回在储存库的所有 ref 说明。
公共方法 AllRefTags 返回在储存库的所有 ref 标记。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法静态成员 IsNoteRef
公共方法静态成员 IsTagRef
公共方法 MatchingName ;如果未找到,则返回在匹配所提供的名称或空储存库的 ref 这样 ref。
公共方法 MatchingNames 返回在名称中提供的列表的储存库的 refs。
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 RefNotesInNamespace 返回在储存库的所有 ref 说明特定命名空间
公共方法 SetHead 对于现有 ref 的名称在储存库中,设置储存库的 head 指向该引用。如果该 ref 不存在,GitRefNotFoundException 将引发异常。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 Write(TeamFoundationRequestContext, TfsGitRefUpdateRequest, IEnumerable<array<Byte[]>, DateTime%) 写入一个提供的所有输出。
公共方法 Write(TeamFoundationRequestContext, IEnumerable<TfsGitRefUpdateRequest>, IEnumerable<array<Byte[]>, DateTime%) 编写提供设置 refs 到储存库。

页首

扩展方法 

  名称 说明
公共扩展方法 GetFilteredRefs (由 Extensions 定义。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.TeamFoundation.Git.Server 命名空间