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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
TeamFoundationServiceException Class