Costruttore MethodInformation (String, MethodType, EstimatedMethodCost, Boolean)
Crea un nuovo MethodInformation che descrive il WebMethod, la pagina, il gestore o il processo che vengono eseguiti.
Spazio dei nomi: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Sintassi
'Dichiarazione
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
)
Parametri
- webMethodName
Tipo: System.String
Il nome del metodo, della pagina, del gestore o del processo.
- methodType
Tipo: Microsoft.TeamFoundation.Framework.Server.MethodType
Il tipo di metodo chiamato.
- estimatedCost
Tipo: Microsoft.TeamFoundation.Framework.Server.EstimatedMethodCost
Il costo stimato il metodo.
- keepsHostAwake
Tipo: System.Boolean
Indica se il metodo chiamato può eventualmente svegliare un host inattivo e mantenere un host attivo sveglio.
Note
Per keepsHostAwake, le medie vere che l'host può sveglio tenuto fornito altre condizioni sono soddisfatti.False che l'host non verrà mantenuto sveglio a causa di questa richiesta.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.