MethodInformation 构造函数 (String, MethodType, EstimatedMethodCost)
创建描述WebMethod、页、处理程序或工作的新MethodInformation执行。
命名空间: Microsoft.TeamFoundation.Framework.Server
程序集: Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)
语法
声明
Public Sub New ( _
webMethodName As String, _
methodType As MethodType, _
estimatedCost As EstimatedMethodCost _
)
public MethodInformation(
string webMethodName,
MethodType methodType,
EstimatedMethodCost estimatedCost
)
参数
- webMethodName
类型:System.String
方法、页、处理程序或工作的名称。
- methodType
类型:Microsoft.TeamFoundation.Framework.Server.MethodType
调用的方法的类型。
- estimatedCost
类型:Microsoft.TeamFoundation.Framework.Server.EstimatedMethodCost
方法的估计成本。
备注
假定其他条件匹配,调用方法会唤醒一个休眠宿主并保持有效的宿主醒。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。