Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectDefinitionConstants.IdAttribute Field

Objects can be identified by an id, to enable reference checking.

[Visual Basic]
Public Const IdAttribute As String = id
public const string IdAttribute = id;


There are constraints on a valid XML id: if you want to reference your object in .NET code using a name that's illegal as an XML id, use the optional "name" attribute (NameAttribute). If neither given, the objects Type name is used as id.

See Also

ObjectDefinitionConstants Class | Spring.Objects.Factory.Xml Namespace