TeamFoundationSigningService.Sign 方法 (TeamFoundationRequestContext, Guid, array<Byte[], TimeSpan)

为给定的消息使用为该给定标识符设置的键。

该消息不会在特定的过期时间范围之后验证。

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

语法

声明
Public Function Sign ( _
    requestContext As TeamFoundationRequestContext, _
    identifier As Guid, _
    message As Byte(), _
    expiration As TimeSpan _
) As String
public string Sign(
    TeamFoundationRequestContext requestContext,
    Guid identifier,
    byte[] message,
    TimeSpan expiration
)

参数

  • identifier
    类型:System.Guid
    设置键的标识符
  • message
    类型:array<System.Byte[]
    对符号的消息
  • expiration
    类型:System.TimeSpan
    签名消息可验证的时间长度。通过不过期的TimeSpan.Zero

返回值

类型:System.String
返回签名消息

.NET Framework 安全性

请参见

参考

TeamFoundationSigningService 类

Sign 重载

Microsoft.TeamFoundation.Framework.Server 命名空间