DeleteGroup Method

Description

Deletes a security group using the Microsoft Office Project Server 2003 security object.

Syntax

Function DeleteGroup( _
   ByVal grp_guid As String _
) As Long

Parameters

Parameter Description

grp_guid

Required String. The GUID for the group that should be deleted, as in MSP_WEB_SECURITY_GROUPS.WSEC_GRP_GUID.

Return Value

The DeleteGroup method returns HRESULT as a Long (4-byte integer) value.

Example

The following example is for Microsoft Visual Basic 6.0.

Dim lResult as Long
Set oSec = CreateObject("PjSvrSecurity.PjSvrSecurity")
oSec.SetDBConnection "ProjectServer"
lResult = oSec.DeleteGroup("{D37574A9-9406-42A1-A82D-695FD90677F0}")
Set oSec = Nothing