NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FormatException Class

Represents an exception that is thrown when the format of an argument does not match the contract of its method.

Object
   Exception
      SystemException
         FormatException

[Visual Basic]
Public Class FormatException
   Inherits SystemException
[C#]
public class FormatException : SystemException
[C++]
public __gc class FormatException : public SystemException
[JScript]
public class FormatException extends SystemException

Remarks

For example, a method may have a parameter of type String that is required to consist of a single digit followed by a period that is followed by a single digit. Passing the method a string that contains merely two digits would cause a FormatException to be thrown.

Requirements

Namespace: System

Assembly: mscorlib.dll

See Also

FormatException Members | System Namespace