Initializes a new instance of the exception with serialized data.

C# | Visual Basic | Visual C++ | J# |
protected ServiceNotFoundException( SerializationInfo info, StreamingContext context )
Protected Sub New ( _ info As SerializationInfo, _ context As StreamingContext _ )
protected: ServiceNotFoundException( SerializationInfo^ info, StreamingContext context )
protected ServiceNotFoundException( SerializationInfo info, StreamingContext context )

- info (SerializationInfo)
- The object that holds the serialized object data.
- context (StreamingContext)
- The contextual information about the source or destination.