Creates a region with the given name.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
[ObsoleteAttribute("Use Autodesk.Civil.DatabaseServices.BaselineRegionCollection.Add instead.", 
	false)]
public BaselineRegion AddRegion(
	string regionName,
	string assemblyName
)
Visual Basic
<ObsoleteAttribute("Use Autodesk.Civil.DatabaseServices.BaselineRegionCollection.Add instead.",  _
	False)> _
Public Function AddRegion ( _
	regionName As String, _
	assemblyName As String _
) As BaselineRegion
Visual C++
[ObsoleteAttribute(L"Use Autodesk.Civil.DatabaseServices.BaselineRegionCollection.Add instead.", 
	false)]
public:
BaselineRegion^ AddRegion(
	String^ regionName, 
	String^ assemblyName
)

Parameters

regionName
Type: System..::..String
Name of the created region.
assemblyName
Type: System..::..String
Name of the assembly used to create the region.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when the region name or assembly name is invalid.
System..::..InvalidOperationException Thrown when the last BaselineRegion's EndStation is equal to Baseline's EndStaion.

See Also