log4net SDK Reference |

# XmlHierarchyConfigurator.ConvertStringTo Method

Converts a string value to a target type.

[Visual Basic]
Protected Function ConvertStringTo( _
ByVal type As Type, _
ByVal value As String _
) As Object
[C#]
protected object ConvertStringTo(
Type type,
string value
);

#### Parameters

type
  The type of object to convert the string to.
value
  The string value to use as the value of the object.

#### Return Value

An object of type type with value value or `null` when the conversion could not be performed.

#### Remarks

Missing <remarks> documentation for M:log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(System.Type,System.String)

#### See Also

XmlHierarchyConfigurator Class | log4net.Repository.Hierarchy Namespace