Adds a named property to the collection. The specified data is stored with the named property.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

Visual Basic
Dim instance As TransactionPropertyCollection
Dim propertyName As String
Dim value As Object

instance.Add(propertyName, value)

Syntax

Visual Basic
Public MustOverride Sub Add ( _
		propertyName As String, _
		value As Object _
)
C#
public abstract void Add (
		string propertyName,
		Object value
)
C++
public:
virtual void Add (
		String^ propertyName, 
		Object^ value
) abstract
J#
public abstract void Add (
		String propertyName, 
		Object value
)
JScript
public abstract function Add (
		propertyName : String, 
		value : Object
)

Parameters

propertyName

Contains the name of the property to add. The name is not case-sensitive.

value

Contains an System.Object that contains the data that will be set for the new property. This object must be serializable.

Exceptions

Exception type Condition
System.ArgumentNullException

The propertyName parameter or the value parameter is null.

System.Runtime.Serialization.SerializationException

The object that is identified by the value parameter cannot be serialized.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also