IAzApplicationGroup::DeletePropertyItem method (azroles.h)

The DeletePropertyItem method removes the specified entity from the specified list.

Syntax

HRESULT DeletePropertyItem(
  [in]           LONG    lPropId,
  [in]           VARIANT varProp,
  [in, optional] VARIANT varReserved
);

Parameters

[in] lPropId

Property ID of the list from which to remove the entity specified by the varProp parameter. The following table shows the possible values.

Value Meaning
AZ_PROP_GROUP_APP_MEMBERS
Can also be removed using the DeleteAppMember method
AZ_PROP_GROUP_APP_NON_MEMBERS
Can also be removed using the DeleteAppNonMember method
AZ_PROP_GROUP_MEMBERS
Can also be removed using the DeleteMember method
AZ_PROP_GROUP_MEMBERS_NAME
Can also be removed using the DeleteMemberName method
AZ_PROP_GROUP_NON_MEMBERS
Can also be removed using the DeleteNonMember method
AZ_PROP_GROUP_NON_MEMBERS_NAME
Can also be removed using the DeleteNonMemberName method

[in] varProp

The entity to remove from the list specified by the lPropId parameter.

The variant must be a BSTR variant.

If AZ_PROP_GROUP_MEMBERS_NAME or AZ_PROP_GROUP_NON_MEMBERS_NAME is specified for the lPropId parameter, the string is the account name of the account to remove from the list. The account name must be in user principal name (UPN) format (for example, "someone@example.com"). If AZ_PROP_GROUP_APP_MEMBERS or AZ_PROP_GROUP_APP_NON_MEMBERS is specified for the lPropId parameter, the string is the Name property of the IAzApplicationGroup object to remove from the list.

[in, optional] varReserved

Reserved for future use.

Return value

If the method succeeds, the method returns S_OK.

Any other HRESULT value indicates that the operation failed.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header azroles.h
Library Azroles.lib
DLL Azroles.dll
Redistributable Windows Server 2003 Administration Tools Pack on Windows XP