Sitecore 5.0 API

Settings.GetObject Method 

Gets the object.

[Visual Basic]
Public Shared Function GetObject( _
   ByVal objectID As String, _
   ByVal configPath As String, _
   ByVal expectedType As Type _
) As Object
[C#]
public static object GetObject(
   string objectID,
   string configPath,
   Type expectedType
);

Parameters

objectID
Object ID.
configPath
Config path.
expectedType
Expected type.

See Also

Settings Class | Sitecore.Configuration Namespace