
DM API METHODS AND PROPERTIES 243
IsMemberOf
IsMemberOf
This method reports whether or not a user ID is a member of the
network group that you specify.
Syntax
PCDNetworkInfo.IsMemberOf( strNetworkOS, _
strDomainName, _
strUserID, _
strGroupName )
Parameters
Returns
The IsMemberOf method returns an HRESULT value that indicates
either success or the numeric error code that identifies the reason why
the method did not execute successfully.
S_OK indicates success.
Usage
Use the NextRow method to test whether the user is a member of the
specified group. If the user is not a member of the specified group, then
strNetworkOS A string variable that identifies the network
operating system that is currently running.
Valid values are:
•%NI_ADS
(Active Directory Services)
• %NI_NT (a Microsoft network)
• %NI_NDS (a Novell network)
strDomainName A string that identifies the domain that is being
searched.
strUserID A string that identifies the network ID of the
user whose membership in the group is being
checked.
strGroupName A string that identifies the name of the group
that is being checked to see if the current user
is a member.
Comentários a estes Manuais