Extensions.GetIdentityRef 方法

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

语法

声明
<ExtensionAttribute> _
Public Shared Function GetIdentityRef ( _
    tfsGitRef As TfsGitRef, _
    requestContext As TeamFoundationRequestContext _
) As IdentityRef
public static IdentityRef GetIdentityRef(
    this TfsGitRef tfsGitRef,
    TeamFoundationRequestContext requestContext
)

参数

返回值

类型:Microsoft.VisualStudio.Services.WebApi.IdentityRef

使用说明

在 Visual Basic 和 C# 中,可以在 TfsGitRef 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅 扩展方法 (Visual Basic)扩展方法(C# 编程指南)

.NET Framework 安全性

请参阅

参考

Extensions 类

Microsoft.TeamFoundation.Git.Server 命名空间