Share via


ProjectDataSet.ProjectCustomFieldsDataTable.AddProjectCustomFieldsRow Method (Guid, Guid, Guid, Int32, Byte, Boolean, String, DateTime, Guid, Int32, Decimal, Byte, Int32)

Adds a ProjectCustomFieldsRow object to the ProjectCustomFieldsDataTable.by using separate parameters.

Namespace:  [Project Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/Project.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/Project.asmx?wsdl

Syntax

'Declaration
Public Function AddProjectCustomFieldsRow ( _
    CUSTOM_FIELD_UID As Guid, _
    PROJ_UID As Guid, _
    MD_PROP_UID As Guid, _
    MD_PROP_ID As Integer, _
    FIELD_TYPE_ENUM As Byte, _
    FLAG_VALUE As Boolean, _
    TEXT_VALUE As String, _
    DATE_VALUE As DateTime, _
    CODE_VALUE As Guid, _
    DUR_VALUE As Integer, _
    NUM_VALUE As Decimal, _
    DUR_FMT As Byte, _
    INDICATOR_VALUE As Integer _
) As ProjectDataSet.ProjectCustomFieldsRow
'Usage
Dim instance As ProjectDataSet.ProjectCustomFieldsDataTable
Dim CUSTOM_FIELD_UID As Guid
Dim PROJ_UID As Guid
Dim MD_PROP_UID As Guid
Dim MD_PROP_ID As Integer
Dim FIELD_TYPE_ENUM As Byte
Dim FLAG_VALUE As Boolean
Dim TEXT_VALUE As String
Dim DATE_VALUE As DateTime
Dim CODE_VALUE As Guid
Dim DUR_VALUE As Integer
Dim NUM_VALUE As Decimal
Dim DUR_FMT As Byte
Dim INDICATOR_VALUE As Integer
Dim returnValue As ProjectDataSet.ProjectCustomFieldsRow

returnValue = instance.AddProjectCustomFieldsRow(CUSTOM_FIELD_UID, _
    PROJ_UID, MD_PROP_UID, MD_PROP_ID, _
    FIELD_TYPE_ENUM, FLAG_VALUE, TEXT_VALUE, _
    DATE_VALUE, CODE_VALUE, DUR_VALUE, _
    NUM_VALUE, DUR_FMT, INDICATOR_VALUE)
public ProjectDataSet.ProjectCustomFieldsRow AddProjectCustomFieldsRow(
    Guid CUSTOM_FIELD_UID,
    Guid PROJ_UID,
    Guid MD_PROP_UID,
    int MD_PROP_ID,
    byte FIELD_TYPE_ENUM,
    bool FLAG_VALUE,
    string TEXT_VALUE,
    DateTime DATE_VALUE,
    Guid CODE_VALUE,
    int DUR_VALUE,
    decimal NUM_VALUE,
    byte DUR_FMT,
    int INDICATOR_VALUE
)

Parameters

  • CUSTOM_FIELD_UID
    Type: System.Guid
    Contains the custom field GUID that contains the list of roles used in the analysis.
  • PROJ_UID
    Type: System.Guid
    Contains the project GUID.
  • MD_PROP_UID
    Type: System.Guid
    Contains the custom field GUID.
  • MD_PROP_ID
    Type: System.Int32
    Contains the custom field ID.
  • FIELD_TYPE_ENUM
    Type: System.Byte
    Specifies the PSDataType value for the custom field.
  • FLAG_VALUE
    Type: System.Boolean
    Specifies the custom field value if the FIELD_TYPE_ENUM property is set to type YESNO.
  • TEXT_VALUE
    Type: System.String
    Specifies the custom field value if the FIELD_TYPE_ENUM property is set to type STRING.
  • DATE_VALUE
    Type: System.DateTime
    Specifies the custom field value if the FIELD_TYPE_ENUM property is set to type DATE.
  • CODE_VALUE
    Type: System.Guid
    Specifies the custom field value if the FIELD_TYPE_ENUM property is set to type GUID.
  • DUR_VALUE
    Type: System.Int32
    Specifies the custom field value if the FIELD_TYPE_ENUM property is set to type DURATION.
  • NUM_VALUE
    Type: System.Decimal
    Specifies the custom field value if the FIELD_TYPE_ENUM property is set to type NUMBER.
  • DUR_FMT
    Type: System.Byte
    Represents the display format you want for the DUR_VALUE property if the FIELD_TYPE_ENUM property is set to type DURATION.
  • INDICATOR_VALUE
    Type: System.Int32
    Specifies the custom field value if the FIELD_TYPE_ENUM property is set to type INDICATOR.

Return Value

Type: [Project Web service].ProjectDataSet.ProjectCustomFieldsRow

Remarks

In general, developers should use the AddProjectCustomFieldsRow overload.

See Also

Reference

ProjectDataSet.ProjectCustomFieldsDataTable Class

ProjectDataSet.ProjectCustomFieldsDataTable Members

AddProjectCustomFieldsRow Overload

Project Web Service