ResourceDataSet.ResourceAvailabilitiesRow.RES_AVAIL_TO Property
Gets or sets the end date until which the resource is available.
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 Property RES_AVAIL_TO As DateTime
Get
Set
'Usage
Dim instance As ResourceDataSet.ResourceAvailabilitiesRow
Dim value As DateTime
value = instance.RES_AVAIL_TO
instance.RES_AVAIL_TO = value
public DateTime RES_AVAIL_TO { get; set; }
Property Value
Type: System.DateTime
Remarks
Project does not recognize time zones. To manage resources in different time zones requires creating resource calendars for the time zones.
You cannot add RES_AVAIL_TO to a material resource. To add a work or cost resource availability date, specify a date only, not a time. For example, DateTime dt = DateTime(2011, 06, 26) or DateTime dt = DateTime(2011, 06, 26, 0, 0, 0) works because either value is the same date and time. DateTime dt = DateTime(2011, 06, 26, 9, 0, 0) causes a SOAP exception with the error GeneralInvalidColumnValue (error code 20000) when you try to create the resource.
Note
Converting a local date to Coordinated Universal Time (UTC) usually causes an exception because the converted time is not midnight.
The System.DBNull value in RES_AVAIL_TO implies DateTime.MinValue.
See Also
Reference
ResourceDataSet.ResourceAvailabilitiesRow Class