GetBandStyleId Method

Get the ObjectId of BandStyle with the specified bandType and bandStyleName from the specified database.

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

Syntax

C#

public static ObjectId GetBandStyleId(
	Database database,
	BandType bandType,
	string bandStyleName
)

Visual Basic

Public Shared Function GetBandStyleId ( _
	database As Database, _
	bandType As BandType, _
	bandStyleName As String _
) As ObjectId

Visual C++

public:
static ObjectId GetBandStyleId(
	Database^ database, 
	BandType bandType, 
	String^ bandStyleName
)

Parameters

database
Type: Database
The database where to get the band styleId.
bandType
Type: Autodesk.Civil.BandType
The band type.
bandStyleName
Type: System.String
The name of band style.

Exceptions

ExceptionCondition
System.ArgumentException Thrown when bandStyleName is invalid.

See Also