DeleteCustomMenu Method
Description
Deletes a custom menu item using the Microsoft Office Project Server 2003 security object.
Syntax
Function DeleteCustomMenu( _
ByVal lCustomMenuID As Long _
) As Long
Parameters
Parameter | Description |
---|---|
lCustomMenuID |
Required Long. The menu item ID from MSP_WEB_SECURITY_MENUS.WSEC_MENU_ID. |
Return Value
The DeleteCustomMenu method returns HRESULT as a Long (4-byte integer) value.
Example
The following example removes the custom menu ID 10001. The example is for Microsoft Visual Basic 6.0.
Dim lResult as Long
Set oSec = CreateObject("PjSvrSecurity.PjSvrSecurity")
oSec.SetDBConnection "ProjectServer"
lResult = oSec.DeleteCustomMenu(10001)
Set oSec = Nothing