Miner.Responder.Shared Assembly > Miner.Responder.Shared.Configuration Namespace > ProvidersHelper Class : TryCast<T> Method |
'Declaration Public Shared Function TryCast(Of T)( _ ByVal obj As Object, _ ByVal defaultValue As T _ ) As T
'Usage Dim obj As Object Dim defaultValue As T Dim value As T value = ProvidersHelper.TryCast(Of T)(obj, defaultValue)
Exception | Description |
---|---|
System.InvalidCastException | Thrown if the type of the object cannot be cast to the type of the default value. |
Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)
Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.