MethodInformation Constructor (String, MethodType, EstimatedMethodCost, Boolean)
Creates a new MethodInformation describing the WebMethod, Page, Handler or Job being executed.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub New ( _
webMethodName As String, _
methodType As MethodType, _
estimatedCost As EstimatedMethodCost, _
keepsHostAwake As Boolean _
)
public MethodInformation(
string webMethodName,
MethodType methodType,
EstimatedMethodCost estimatedCost,
bool keepsHostAwake
)
public:
MethodInformation(
String^ webMethodName,
MethodType methodType,
EstimatedMethodCost estimatedCost,
bool keepsHostAwake
)
new :
webMethodName:string *
methodType:MethodType *
estimatedCost:EstimatedMethodCost *
keepsHostAwake:bool -> MethodInformation
public function MethodInformation(
webMethodName : String,
methodType : MethodType,
estimatedCost : EstimatedMethodCost,
keepsHostAwake : boolean
)
Parameters
webMethodName
Type: System.StringThe name of the method, page, handler or job.
methodType
Type: Microsoft.TeamFoundation.Framework.Server.MethodTypeThe type of method being called.
estimatedCost
Type: Microsoft.TeamFoundation.Framework.Server.EstimatedMethodCostThe estimated cost of the method.
keepsHostAwake
Type: System.BooleanIndicates whether the method called can possibly wake a dormant host and keep an active host awake.
Remarks
For keepsHostAwake, true means the host may kept awake given other conditions are met. False indicates that the host will not be kept awake due to the this request.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.