다음을 통해 공유


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.String

    The name of the method, page, handler or job.

  • keepsHostAwake
    Type: System.Boolean

    Indicates 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

See Also

Reference

MethodInformation Class

MethodInformation Overload

Microsoft.TeamFoundation.Framework.Server Namespace