Initializes a new instance of the TeamFoundationServiceUnavailableException class with the specified server name or URL and reason.
Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Sub New ( _
    nameOrUrl As String, _
    reason As String _
)
public TeamFoundationServiceUnavailableException(
    string nameOrUrl,
    string reason
)
public:
TeamFoundationServiceUnavailableException(
    String^ nameOrUrl, 
    String^ reason
)
new : 
        nameOrUrl:string * 
        reason:string -> TeamFoundationServiceUnavailableException
public function TeamFoundationServiceUnavailableException(
    nameOrUrl : String, 
    reason : String
)
Parameters
- nameOrUrl 
 Type: System.String- The name or URL of the server. 
- reason 
 Type: System.String- A string describing why servicing is not possible. 
.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
TeamFoundationServiceUnavailableException Class