Export (0) Print
Expand All
Expand Minimize

PSDataType enumeration

Specifies the type of Project Server data.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

public enum PSDataType

Member nameDescription
INVALIDValue=0. Invalid data. Forces an error return.
UIDValue=1. Project unique identification number (ID).
PRIORITYValue=2. Index into priority table.
CONSTYPEValue=3. Index into constraint table.
DATEValue=4. Date, where HIWORD contains the day offset from 1/1/1984. LOWORD (0 – 1440) contains the minute offset from 12:00 am.
PERCENTValue=5. Percent.
DURATIONValue=6. Value in 1/DUR_MULTIPLIER minutes.
DUROFFSETValue=7. Value in 1/DUR_MULTIPLIER minutes since 1/1/1984.
WORKValue=8. Work value in 1/WORK_MULTIPLIER minutes.
COSTValue=9. Value in 1/COST_MULTIPLIER dollars.
WORKRATEValue=10. Work rate value in (1/DUR_MULTIPLIER minutes per 1/DUR_MULTIPLIER minutes.
COSTRATEValue=11. Value in 1/COST_MULTIPLIER dollars per 1/DUR_MULTIPLIER minutes.
UNITSValue=12. Value in 1/UNITS_MULTIPLIER units.
ACCRUALValue=13. Index into accrual table.
CONTOURTYPEValue=14. Index into contour table.
NUMBERValue=15. A plain number.
BOOLValue=16. Index into boolean string table.
YESNOValue=17. Index into a yes/no string table.
DOUBLEValue=18. A Double value.
WORDValue=20. A Word value (two bytes).
STRINGValue=21. A String value.
TIMELABELValue=22. Time label.
TIMEValue=23. Minutes since 12:00 am (midnight).
LONGValue=24. A Long value.
LINKValue=25. Index to type of task link (SS, FF, FS, SF).
RTFValue=26. Rich text format (RTF) data. Not supported.
FINISHDATEValue=27. Finish date, where the value is the same as DATE, except the default finish time is used when a date string does not include the time.
ELAPSEDDURValue=28. Elapsed duration values.
TASKTYPEValue=29. Task type (fixed units, fixed work, or fixed duration).
STARTDATEValue=4. Start date.
HLFRIENDLYNAMEValue=30. Not supported.
HLTARGETValue=31. Not supported.
HLLOCATIONValue=32. Not supported.
HLHREFValue=33. Not supported.
GPIValue=34. Not supported.
MONIKERValue=35. Not supported.
INDICATORValue=36. Indicator.
EXIDValue=37. External identification number.
BLANKEXIDValue=38. External ID shown as blank string.
WGUSERValue=39. Workgroup user type.
RATETABLEValue=40. Assignment rate table (used by VBA in Project Professional). Not supported.
R8PCTValue=41. Used for percent allocation, where the data may overflow a word. Not supported.
GUIDValue=42. A GUID value.
RSCTYPEValue=43. Resource type.
SIMPLERATEValue=44. Simple rate.
TSMATERIALWORKValue=45. Timesheet material work.
MATERIALWORKValue=45. Same as TSMATERIALWORK (timesheet material work).
HLSCREENTIPValue=46. Not supported.
ENUM1Value=47. Enumerated type used by Web client.
ENUM2Value=48. Enumerated type used by Web client.
ENUM3Value=49. Enumerated type used by Web client.
PSSTRINGSValue=50. Project Server string data.
TASKSTATUSValue=51. Task status (complete, on schedule, late, future task, or none).
DEMREQValue=52. Resource request type.
EVMETHValue=53. Earned value method.
BOOKINGValue=54. Resource booking.
MULTICURRENCYValue=55. Multicurrency.
NUMTYPESValue=56. Numerical types.
BEGINDATEValue=57. Start date.
TASKMODEValue=58. Task mode (automatically or manually scheduled).
BAD_FORMATTYPEValue=-1. Bad format type.

Project, resource, task, and assignment enterprise custom field definitions use PSDataType to specify the type of data. For example, see FIELD_TYPE_ENUM for the task custom field. Enterprise custom fields can be one of the following types:

  • Cost: COST

  • Date: DATE

  • Duration: DURATION

  • Flag: YESNO

  • Number: NUMBER

  • Text: STRING

The following constants are defined in a private assembly:

  • DUR_MULTIPLIER = 10

  • COST_MULTIPLIER = 100

  • WORK_MULTIPLIER = 1000

  • UNITS_MULTIPLIER = 10000

Community Additions

ADD
Show:
© 2014 Microsoft