Share via


ConfigurationHelper.CreateCouldNotConvertException Method

Creates an exception when the configuration cannot be converted.

Namespace: Microsoft.WindowsAzure.Common.Internals
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Usage

'Usage
Dim name As String
Dim value As Object
Dim returnValue As Exception

returnValue = ConfigurationHelper.CreateCouldNotConvertException(name, value)

Syntax

'Declaration
Public Shared Function CreateCouldNotConvertException(Of T) ( _
    name As String, _
    value As Object _
) As Exception
public static Exception CreateCouldNotConvertException<T> (
    string name,
    Object value
)
public:
generic<typename T>
static Exception^ CreateCouldNotConvertException (
    String^ name, 
    Object^ value
)

GenericParameters

  • T
    The type of exception.

Parameters

  • name
    The name.
  • value
    The value.

Return Value

The created exception.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

ConfigurationHelper Class
ConfigurationHelper Members
Microsoft.WindowsAzure.Common.Internals Namespace