System.Messaging Reference (Document! X Sample)
OnSet Method



System.Messaging Namespace > MessageQueuePermissionEntryCollection Class : OnSet Method
The zero-based index at which oldValue can be found.
The value to replace with newValue.
The new value of the element at index.
Performs additional custom processes before setting a value in the System.Collections.CollectionBase instance.
Syntax
'Declaration
 
Protected Overrides Sub OnSet( _
   ByVal index As Integer, _
   ByVal oldValue As Object, _
   ByVal newValue As Object _
) 
'Usage
 
Dim instance As MessageQueuePermissionEntryCollection
Dim index As Integer
Dim oldValue As Object
Dim newValue As Object
 
instance.OnSet(index, oldValue, newValue)
protected override void OnSet( 
   int index,
   object oldValue,
   object newValue
)
protected:
void OnSet( 
   int index,
   Object^ oldValue,
   Object^ newValue
) override 

Parameters

index
The zero-based index at which oldValue can be found.
oldValue
The value to replace with newValue.
newValue
The new value of the element at index.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MessageQueuePermissionEntryCollection Class
MessageQueuePermissionEntryCollection Members
Base Implementation in OnSet