ResourceDataSet.ResourceAvailabilitiesRow.RES_AVAIL_FROM property

Specifies the start date and time for which the RES_AVAIL_UNITS property value applies.

Namespace:  WebSvcTimeSheet
Assembly:  ProjectServerServices (in ProjectServerServices.dll)

Syntax

'Declaration
Public Property RES_AVAIL_FROM As DateTime
    Get
    Set
'Usage
Dim instance As ResourceDataSet.ResourceAvailabilitiesRow
Dim value As DateTime

value = instance.RES_AVAIL_FROM

instance.RES_AVAIL_FROM = value
public DateTime RES_AVAIL_FROM { get; set; }

Property value

Type: System.DateTime

Remarks

Microsoft Project Server 2007 does not recognize time zones. To manage resources in different time zones, you must create resource calendars for each time zone.

You cannot add RES_AVAIL_FROM to a material resource. To add a work availability date or a cost resource availability date, specify a date only, not a time. For example, DateTime dt = DateTime(2007, 06, 26) or DateTime dt = DateTime(2007, 06, 26, 0, 0, 0) works because either value is the same date and time. DateTime dt = DateTime(2007, 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.

When you create a resource, the default RES_AVAIL_FROM value is the current date.

The System.DBNull value in RES_AVAIL_FROM implies DateTime.MinValue.

Examples

For sample code that creates resources and sets RES_AVAIL_FROM, see the CreateResources method.

See also

Reference

ResourceDataSet.ResourceAvailabilitiesRow class

ResourceDataSet.ResourceAvailabilitiesRow members

WebSvcTimeSheet namespace