Share via


TeamFoundationServiceException Constructor (Int32, Boolean)

Initializes an exception with the specified error message.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Sub New ( _
    errorCode As Integer, _
    logException As Boolean _
)
public TeamFoundationServiceException(
    int errorCode,
    bool logException
)
public:
TeamFoundationServiceException(
    int errorCode, 
    bool logException
)
new : 
        errorCode:int * 
        logException:bool -> TeamFoundationServiceException
public function TeamFoundationServiceException(
    errorCode : int, 
    logException : boolean
)

Parameters

  • errorCode
    Type: System.Int32

    Application-defined error code for this exception.

  • logException
    Type: System.Boolean

    Indicate whether this exception should be logged.

.NET Framework Security

See Also

Reference

TeamFoundationServiceException Class

TeamFoundationServiceException Overload

Microsoft.TeamFoundation.Framework.Server Namespace