Share via


TransactionPropertyCollection.Add Method

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

'Usage
Dim instance As TransactionPropertyCollection
Dim propertyName As String
Dim value As Object

instance.Add(propertyName, value)

Syntax

'Declaration
Public MustOverride Sub Add ( _
    propertyName As String, _
    value As Object _
)
public abstract void Add (
    string propertyName,
    Object value
)
public:
virtual void Add (
    String^ propertyName, 
    Object^ value
) abstract
public abstract void Add (
    String propertyName, 
    Object value
)
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

Reference

TransactionPropertyCollection Class
TransactionPropertyCollection Members
Microsoft.MetadirectoryServices Namespace
TransactionPropertyCollection Class