ResourceDataSet.ResourceCustomFieldsDataTable.AddResourceCustomFieldsRow method (Guid, ResourceDataSet.ResourcesRow, Guid, Boolean, Int32, String, String, Byte, DateTime, Guid, Int32, Decimal, Byte, Int32)
Adds a ResourceCustomFieldssRow object to the ResourceCustomFieldsDataTable by using separate parameters.
Namespace: WebSvcWorkflow
Assembly: ProjectServerServices (in ProjectServerServices.dll)
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.GuidContains the custom field GUID.
parentResourcesRowByResourcesResourceCustomFields
Type: WebSvcWorkflow.ResourceDataSet.ResourcesRowContains the row information.
MD_PROP_UID
Type: System.GuidContains the GUID of the custom field.
FLAG_VALUE
Type: System.BooleanContains the value of the custom field if the FIELD_TYPE_ENUM property is set to type YESNO.
MD_PROP_ID
Type: System.Int32Contains the custom field ID.
MD_PROP_NAME
Type: System.StringContains the custom field name.
TEXT_VALUE
Type: System.StringContains the value of the custom field if the FIELD_TYPE_ENUM property is set to type STRING.
FIELD_TYPE_ENUM
Type: System.ByteContains the PSDataType value for this custom field.
DATE_VALUE
Type: System.DateTimeContains the value of the custom field if the FIELD_TYPE_ENUM property is set to type DATE.
CODE_VALUE
Type: System.GuidContains the value of the custom field if the FIELD_TYPE_ENUM property is set to type GUID.
DUR_VALUE
Type: System.Int32Contains the value of the custom field if the FIELD_TYPE_ENUM property is set to type DURATION.
NUM_VALUE
Type: System.DecimalContains the value of the custom field if the FIELD_TYPE_ENUM property is set to type NUMBER.
DUR_FMT
Type: System.ByteThe display format that you want for the DUR_VALUE property if the FIELD_TYPE_ENUM property is set to type DURATION.
INDICATOR_VALUE
Type: System.Int32Contains the value of the custom field if the FIELD_TYPE_ENUM property is set to type INDICATOR.
Return value
Type: WebSvcWorkflow.ResourceDataSet.ResourceCustomFieldsRow
Remarks
In general, developers should use the AddResourceCustomFieldsRow overload.
See also
Reference
ResourceDataSet.ResourceCustomFieldsDataTable class
ResourceDataSet.ResourceCustomFieldsDataTable members