Delete Method
Delete Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Removes an individual member of the collection.
Applies To
Type Library
Microsoft CDO Workflow Objects for Microsoft Exchange
DLL Implemented In
CDOWF.DLL
Syntax
[Visual Basic]Sub Delete
(
varIndex As Variant
)
[C++]HRESULT Delete ( VARIANT varIndex );
Parameters
- varIndex
A variant containing either the zero-based index of the member to delete, or a string naming the member to delete.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
varIndex can be a string or one-based ordinal number. If varIndex is a string, it must be one of the following two types.
Name Type "someone@example.com" cdowfEmailAddress (0) "Role1" ... "Role16" cdowfRole (1) While "someone@example.com" is a fictitious name, "Role1" through "Role16" are literal names and are the only ones valid for type cdowfRole.
Example
This example removes the user specified by emAddress from the IWorkflowSession Interface, ItemAuthors Property collection.
emAddress = "someone@example.com" WorkflowSession.ItemAuthors.Delete emAddress
See Also
Send us your feedback about the Microsoft Exchange Server 2003 SDK.
Build: June 2007 (2007.618.1)
© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.