Contents Index Topic Contents | ||
Previous Topic: ChangeChannelProperty Method Next Topic: CreateChannel Method |
ChangeMemberProperty Method
Asynchronously changes a member property.
Syntax
object.ChangeMemberProperty MemberPropertyName, NewMemberProperty[, MemberNickname]
Parameters
object Required. An object expression that evaluates to a Channel object. MemberPropertyName Required. A string expression. The only valid member property name value is "Modes". NewMemberProperty Required. A variant. This property must represent a valid member Modes value. A valid member modes value is a combination of these enumMemberMode values:
mmClientIgnored = &H1. mmNotClientIgnored = &H2. mmOwner = &H100. mmNotOwner = &H200. mmHost = &H400. mmNotHost = &H800. mmVoice = &H1000. mmNoVoice = &H2000. MemberNickname Optional. If specified, it must be an empty variant or a valid channel member nickname. If omitted or empty, the nickname of the caller is used. Remarks
A successful call results in an OnMemberPropertyChanged event.
Examples
1. Change your own modes (giving up your host privileges in the channel):
chan1.ChangeMemberProperty "Modes", mmNotHost2. Change another user's member modes (turning a member into a host):
chan1.ChangeMemberProperty "Modes", mmHost, "JamesB"3. Ignore a member:
chan1.ChangeMemberProperty "Modes", mmClientIgnored, "AustinP"Note You cannot ignore a channel host or owner, or a server system operator or administrator.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.