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 defines 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:
Utils.TransactionProperties("disconnected because of mailbox move") = True
If Utils.TransactionProperties("disconnected because of mailbox move").Equals(True) Then
End If
Utils.TransactionProperties["disconnected because of mailbox move"] = true;
if(Utils.TransactionProperties["disconnected because of mailbox move"].Equals(true))
{
}
Requirements
Product | ILM 2007 FP1 |
Namespace | Microsoft.MetadirectoryServices |
Assembly | Microsoft.MetadirectoryServices |
.NET Framework | .NET Framework 2.0 |
Send comments about this topic to Microsoft
Build date: 2/16/2009