ProjectDataSet.AssignmentCustomFieldsDataTable.AddAssignmentCustomFieldsRow Method (Guid, Guid, Guid, Guid, Int32, Byte, Boolean, String, DateTime, Guid, Int32, Decimal, Byte, Int32)
Adds an AssignmentCustomFieldsRow object to the AssignmentCustomFieldsDataTable.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 AddAssignmentCustomFieldsRow ( _
CUSTOM_FIELD_UID As Guid, _
PROJ_UID As Guid, _
ASSN_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.AssignmentCustomFieldsRow
'Usage
Dim instance As ProjectDataSet.AssignmentCustomFieldsDataTable
Dim CUSTOM_FIELD_UID As Guid
Dim PROJ_UID As Guid
Dim ASSN_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.AssignmentCustomFieldsRow
returnValue = instance.AddAssignmentCustomFieldsRow(CUSTOM_FIELD_UID, _
PROJ_UID, ASSN_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.AssignmentCustomFieldsRow AddAssignmentCustomFieldsRow(
Guid CUSTOM_FIELD_UID,
Guid PROJ_UID,
Guid ASSN_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.
- PROJ_UID
Type: System.Guid
Contains the project GUID.
- ASSN_UID
Type: System.Guid
Contains the assignment GUID.
- MD_PROP_UID
Type: System.Guid
Contains the GUID of the custom field.
- MD_PROP_ID
Type: System.Int32
Contains the custom field identifier.
- 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
Specifies 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 value of the custom field if the FIELD_TYPE_ENUM property is set to type INDICATOR.
Return Value
Type: [Project Web service].ProjectDataSet.AssignmentCustomFieldsRow
Remarks
In general, developers should use the AddAssignmentCustomFieldsRow overload.
See Also
Reference
ProjectDataSet.AssignmentCustomFieldsDataTable Class
ProjectDataSet.AssignmentCustomFieldsDataTable Members