Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

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(
���Typetype,
���stringvalue
);

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.

See Also

XmlHierarchyConfigurator Class | log4net.Repository.Hierarchy Namespace