Microsoft Identity Integration Server 2003 Developer Reference

TransactionPropertyCollection

The TransactionPropertyCollection class represents a collection of named properties that can be shared between different methods of an extension and between separate extensions for a specific transaction. An instance of this class is obtained from the Utils.TransactionProperties property. The properties in the collection will exist for the lifetime of the current transaction.

The TransactionPropertyCollection class is derived from the System.Object class.

Public Methods

The TransactionPropertyCollection class has the following public methods.

Method Description
Add

Adds a named property to the collection.

Clear

Removes all properties from the collection.

Contains

Determines if the collection contains a specific property.

Equals

Determines if two objects are equal.

GetHashCode

Serves as a hash function for a particular type.

GetType

Retrieves the Type of the current object.

Remove

Removes a specific property from the collection.

ToString

Retrieves a String that represents the current object.

Public Properties

The TransactionPropertyCollection class has the following public properties.

Property Description
Count Data type: Int32
Access type: Read-only

Retrieves the number of items in the collection.

Item Data type: Object
Access type: Read/write

Retrieves or sets the data for a specific property in the collection.

Keys Data type: ICollection
Access type: Read-only

Retrieves a collection of the property names.

Values Data type: ICollection
Access type: Read-only

Retrieves a collection of property values.

Protected Constructors

The TransactionPropertyCollection class has the following protected constructor.

Constructor Description
TransactionPropertyCollection

Creates an instance of the TransactionPropertyCollection class.

Remarks

The TransactionPropertyCollection class allows properties to be indexed by name, as shown in the following example:

[Visual Basic .NET]
Utils.TransactionProperties("disconnected because of mailbox move") = True
If Utils.TransactionProperties("disconnected because of mailbox move").Equals(True) Then
End If
[C#]
Utils.TransactionProperties["disconnected because of mailbox move"] = true;
if(Utils.TransactionProperties["disconnected because of mailbox move"].Equals(true))
{
}

Requirements

Product: Microsoft Identity Integration Server 2003
Namespace: Defined in Microsoft.MetadirectoryServices.
Assembly: Requires Microsoft.MetadirectoryServices (in Microsoft.MetadirectoryServices.dll).
.NET Framework: Requires .NET Framework 1.1.