Message Property
The Message property of the InvalidServiceClassException class gets the error message that reports the actual service class ID value that caused the exception and the expected service class ID.
Property Value
An error message that reports the actual and expected service class ID values.
Remarks
The InvalidServiceClassException class represents the exception that is thrown when a Service is instantiated with an invalid service class ID.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security