TfsHttpRequestHelpers.PrepareWebRequest 方法 (HttpWebRequest, Guid, String, CultureInfo, TfsRequestSettings, TfsClientCredentials, IdentityDescriptor)
命名空间: Microsoft.TeamFoundation.Client.Channels
程序集: Microsoft.TeamFoundation.Client(在 Microsoft.TeamFoundation.Client.dll 中)
语法
声明
Public Shared Function PrepareWebRequest ( _
webRequest As HttpWebRequest, _
sessionId As Guid, _
operationName As String, _
cultureInfo As CultureInfo, _
settings As TfsRequestSettings, _
credentials As TfsClientCredentials, _
impersonate As IdentityDescriptor _
) As HttpWebRequest
public static HttpWebRequest PrepareWebRequest(
HttpWebRequest webRequest,
Guid sessionId,
string operationName,
CultureInfo cultureInfo,
TfsRequestSettings settings,
TfsClientCredentials credentials,
IdentityDescriptor impersonate
)
参数
- webRequest
类型:System.Net.HttpWebRequest
- sessionId
类型:System.Guid
- operationName
类型:System.String
- cultureInfo
类型:System.Globalization.CultureInfo
- credentials
类型:Microsoft.TeamFoundation.Client.TfsClientCredentials
- impersonate
类型:Microsoft.TeamFoundation.Framework.Client.IdentityDescriptor
返回值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。