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: WebSvcProject
Assembly: ProjectServerServices (in ProjectServerServices.dll)
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.GuidContains the custom field GUID that contains the list of roles used in the analysis.
PROJ_UID
Type: System.GuidContains the project GUID.
MD_PROP_UID
Type: System.GuidContains the custom field GUID.
MD_PROP_ID
Type: System.Int32Contains the custom field ID.
FIELD_TYPE_ENUM
Type: System.ByteSpecifies the PSDataType value for the custom field.
FLAG_VALUE
Type: System.BooleanSpecifies the custom field value if the FIELD_TYPE_ENUM property is set to type YESNO.
TEXT_VALUE
Type: System.StringSpecifies the custom field value if the FIELD_TYPE_ENUM property is set to type STRING.
DATE_VALUE
Type: System.DateTimeSpecifies the custom field value if the FIELD_TYPE_ENUM property is set to type DATE.
CODE_VALUE
Type: System.GuidSpecifies the custom field value if the FIELD_TYPE_ENUM property is set to type GUID.
DUR_VALUE
Type: System.Int32Specifies the custom field value if the FIELD_TYPE_ENUM property is set to type DURATION.
NUM_VALUE
Type: System.DecimalSpecifies the custom field value if the FIELD_TYPE_ENUM property is set to type NUMBER.
DUR_FMT
Type: System.ByteRepresents 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.Int32Specifies the custom field value if the FIELD_TYPE_ENUM property is set to type INDICATOR.
Return value
Type: WebSvcProject.ProjectDataSet.ProjectCustomFieldsRow
Remarks
In general, developers should use the AddProjectCustomFieldsRow overload.
See also
Reference
ProjectDataSet.ProjectCustomFieldsDataTable class
ProjectDataSet.ProjectCustomFieldsDataTable members