Share via


CleanupExtendedResourceViewTables Method

Description

Cleans up extended resource view tables for a specified resource using the Microsoft Office Project Server 2003 security object.

Syntax

Sub CleanupExtendedResourceViewTables( _
   ByVal lWResID As Long)

Parameters

Parameter Description

lWResID

Required Long. The resource ID as in MSP_WEB_PROJECTS.WRES_ID.

Return Value

The CleanupExtendedResourceViewTables method returns no value (Void).

Remarks

DeleteAccount also calls CleanupExtendedResourceViewTables if the resource is an enterprise resource. CleanupExtendedResourceViewTables provides the flexibility for other functions to programmatically clean their extended resource view tables.

Example

The following example is for Microsoft Visual Basic 6.0.

Set oSec = CreateObject("PjSvrSecurity.PjSvrSecurity")
oSec.SetDBConnection "ProjectServer"
oSec.CleanupExtendedResourceViewTables 120
Set oSec = Nothing