TeamFoundationExceptionFormatter.FormatException Method

Formats the specified Exception, including all inner exceptions.

Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

声明
Public Shared Function FormatException ( _
    exception As Exception, _
    useBriefFormat As Boolean _
) As String
public static string FormatException(
    Exception exception,
    bool useBriefFormat
)
public:
static String^ FormatException(
    Exception^ exception, 
    bool useBriefFormat
)
static member FormatException : 
        exception:Exception * 
        useBriefFormat:bool -> string 
public static function FormatException(
    exception : Exception, 
    useBriefFormat : boolean
) : String

Parameters

  • useBriefFormat
    Type: System.Boolean
    Omits exception details form the retur value.

Return Value

Type: System.String
A formatted string that describes the exception and the nested inner exceptions.

.NET Framework Security

See Also

Reference

TeamFoundationExceptionFormatter Class

Microsoft.TeamFoundation Namespace