AddressBook.IsMemberOf method
When overridden in a derived class, the IsMemberOf method indicates whether the specified recipient belongs to the specified group.
Namespace: Microsoft.Exchange.Data.Transport
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride Function IsMemberOf ( _
recipientSmtpAddress As RoutingAddress, _
groupSmtpAddress As RoutingAddress _
) As Boolean
'Usage
Dim instance As AddressBook
Dim recipientSmtpAddress As RoutingAddress
Dim groupSmtpAddress As RoutingAddress
Dim returnValue As Boolean
returnValue = instance.IsMemberOf(recipientSmtpAddress, _
groupSmtpAddress)
public abstract bool IsMemberOf(
RoutingAddress recipientSmtpAddress,
RoutingAddress groupSmtpAddress
)
Parameters
recipientSmtpAddress
Type: Microsoft.Exchange.Data.Transport.RoutingAddressThe proxy or primary address of the recipient.
groupSmtpAddress
Type: Microsoft.Exchange.Data.Transport.RoutingAddressThe proxy or primary address of the group.
Return value
Type: System.Boolean
When overridden in a derived class, the IsMemberOf method returns true if the specified recipient is a member of the specified group; otherwise, the method returns false.