NameIdPair Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Undo revision 51713 by Chris Kahn (Talk))
No edit summary
Line 2: Line 2:
This class represents the name and ID of a project.
This class represents the name and ID of a project.
== Constructors ==
== Constructors ==
*NameIdPair {{APIComment|Creates a new class that represents a Name and ID pair.}}
*NameIdPair( Integer, String ) {{APIComment|Represents an element (e.g., project, model) with the specified numerical ID and name. (Automatically called via the "GetAll" and "GetCurrent" methods in the Repository class.)}}


== Methods ==
== Methods ==

Revision as of 15:33, 3 March 2014


This class represents the name and ID of a project.

Constructors

  • NameIdPair( Integer, String ) Represents an element (e.g., project, model) with the specified numerical ID and name. (Automatically called via the "GetAll" and "GetCurrent" methods in the Repository class.)

Methods

  • ToString Overridable function that returns the Name.

Properties

  • Name (as string) Gets or set the project name.
  • ID (as integer) Gets or set the project ID number.