| ServiceLocatorImplBaseFormatActivationExceptionMessage Method |
Format the exception message for use in an
ActivationException
that occurs while resolving a single service.
Namespace: Microsoft.Practices.ServiceLocationAssembly: Microsoft.Practices.ServiceLocation (in Microsoft.Practices.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax protected virtual string FormatActivationExceptionMessage(
Exception actualException,
Type serviceType,
string key
)
Protected Overridable Function FormatActivationExceptionMessage (
actualException As Exception,
serviceType As Type,
key As String
) As String
protected:
virtual String^ FormatActivationExceptionMessage(
Exception^ actualException,
Type^ serviceType,
String^ key
)
abstract FormatActivationExceptionMessage :
actualException : Exception *
serviceType : Type *
key : string -> string
override FormatActivationExceptionMessage :
actualException : Exception *
serviceType : Type *
key : string -> string
Parameters
- actualException
- Type: SystemException
The actual exception thrown by the implementation. - serviceType
- Type: SystemType
Type of service requested. - key
- Type: SystemString
Name requested.
Return Value
Type:
StringThe formatted exception message string.
See Also