Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ResourceConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

Convert from a string value to a IResource instance.

[Visual Basic]
Public Overrides Overloads Sub ConvertFrom( _
   ByVal context As ITypeDescriptorContext, _
   ByVal culture As CultureInfo, _
   ByVal value As Object _
)
[C#]
public override object ConvertFrom(
   ITypeDescriptorContext context,
   CultureInfo culture,
   object value
);

Parameters

context
A ITypeDescriptorContext that provides a format context.
culture
The CultureInfo to use as the current culture.
value
The value that is to be converted.

Return Value

An IResource if successful.

Exceptions

Exception Type Condition
UriFormatException If the resource name objectained form the supplied value is malformed.
Exception In the case of any errors arising from the instantiation of the returned IResource instance.

See Also

ResourceConverter Class | Spring.Core.IO Namespace | ResourceConverter.ConvertFrom Overload List