Condividi tramite


Metodo TeamFoundationServiceException.ExtractInt

Analizza un messaggio di SqlError ed estrae il campo identificato dalla chiave.

Spazio dei nomi:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Sintassi

'Dichiarazione
Public Shared Function ExtractInt ( _
    error As SqlError, _
    key As String _
) As Integer
public static int ExtractInt(
    SqlError error,
    string key
)

Parametri

Valore restituito

Tipo: System.Int32
Il valore intero estratto, oppure -1 se il valore non è disponibile o non è un numero valido.

Note

Le ricerche del modello %key=value% e restituisce valore come int.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

TeamFoundationServiceException Classe

Spazio dei nomi Microsoft.TeamFoundation.Framework.Server