DOFConfigBuildersetName Method OpenDOF Object Access Library
Sets the name that will be used to identify a DOF in logging.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public DOFConfigBuilder setName(
	string name
)

Parameters

name
Type: SystemString
The name to assign to the DOF for logging. Null to randomly generate a name.

Return Value

Type: DOFConfigBuilder
The Builder, with the name set to the new value.
Remarks

Sets the name that will be used to identify a DOF in logging. You can set this to null (which is its default value) to cause the library to generate a unique name (following the pattern: dof1, dof2, and so on) each time the DOF.Config is used to instantiate a DOF.

Names must be globally unique. If you use this method to set a constant value for the name, you should not use a DOF.Config created from this Builder to instantiate more than one DOF.

See Also

Reference