Partager via


ResourceDataSet.ResourceCustomFieldsDataTable.AddResourceCustomFieldsRow Method (Guid, ResourceDataSet.ResourcesRow, Guid, Boolean, Int32, String, String, Byte, DateTime, Guid, Int32, Decimal, Byte, Int32)

Adds a ResourceCustomFieldsRow object to the ResourceCustomFieldsDataTable by using separate parameters.

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

Syntax

'Declaration
Public Function AddResourceCustomFieldsRow ( _
    CUSTOM_FIELD_UID As Guid, _
    parentResourcesRowByResourcesResourceCustomFields As ResourceDataSet.ResourcesRow, _
    MD_PROP_UID As Guid, _
    FLAG_VALUE As Boolean, _
    MD_PROP_ID As Integer, _
    MD_PROP_NAME As String, _
    TEXT_VALUE As String, _
    FIELD_TYPE_ENUM As Byte, _
    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 ResourceDataSet.ResourceCustomFieldsRow
'Usage
Dim instance As ResourceDataSet.ResourceCustomFieldsDataTable
Dim CUSTOM_FIELD_UID As Guid
Dim parentResourcesRowByResourcesResourceCustomFields As ResourceDataSet.ResourcesRow
Dim MD_PROP_UID As Guid
Dim FLAG_VALUE As Boolean
Dim MD_PROP_ID As Integer
Dim MD_PROP_NAME As String
Dim TEXT_VALUE As String
Dim FIELD_TYPE_ENUM As Byte
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 ResourceDataSet.ResourceCustomFieldsRow

returnValue = instance.AddResourceCustomFieldsRow(CUSTOM_FIELD_UID, _
    parentResourcesRowByResourcesResourceCustomFields, _
    MD_PROP_UID, FLAG_VALUE, MD_PROP_ID, _
    MD_PROP_NAME, TEXT_VALUE, FIELD_TYPE_ENUM, _
    DATE_VALUE, CODE_VALUE, DUR_VALUE, _
    NUM_VALUE, DUR_FMT, INDICATOR_VALUE)
public ResourceDataSet.ResourceCustomFieldsRow AddResourceCustomFieldsRow(
    Guid CUSTOM_FIELD_UID,
    ResourceDataSet.ResourcesRow parentResourcesRowByResourcesResourceCustomFields,
    Guid MD_PROP_UID,
    bool FLAG_VALUE,
    int MD_PROP_ID,
    string MD_PROP_NAME,
    string TEXT_VALUE,
    byte FIELD_TYPE_ENUM,
    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.
  • MD_PROP_UID
    Type: System.Guid
    Contains the custom field GUID.
  • MD_PROP_ID
    Type: System.Int32
    Contains the custom field indentifier.
  • MD_PROP_NAME
    Type: System.String
    Contains the custom field name.
  • TEXT_VALUE
    Type: System.String
    Contains the text value associated with the custom field name.
  • FIELD_TYPE_ENUM
    Type: System.Byte
    Contains the PSDataType value for the custom field.
  • DATE_VALUE
    Type: System.DateTime
    Contains the value of the custom field if the FIELD_TYPE_ENUM property is set to type DATE.
  • CODE_VALUE
    Type: System.Guid
    Contains the value of the custom field if the FIELD_TYPE_ENUM property is set to type GUID.
  • DUR_VALUE
    Type: System.Int32
    Contains the value of the custom field if the FIELD_TYPE_ENUM property is set to type DURATION.
  • NUM_VALUE
    Type: System.Decimal
    Contains the value of the custom field if the FIELD_TYPE_ENUM property is set to type NUMBER.
  • DUR_FMT
    Type: System.Byte
    Contains the display format you want for the DUR_VALUE property if the FIELD_TYPE_ENUM property is set to type NUMBER.
  • INDICATOR_VALUE
    Type: System.Int32
    Contains the index in the graphical indicators array for the custom field value.

Return Value

Type: [Resource Web service].ResourceDataSet.ResourceCustomFieldsRow

Remarks

In general, developers should use the AddResourceCustomFieldsRow object.

See Also

Reference

ResourceDataSet.ResourceCustomFieldsDataTable Class

ResourceDataSet.ResourceCustomFieldsDataTable Members

AddResourceCustomFieldsRow Overload

Resource Web Service