TransactionPropertyCollection.Item Property
Gets or sets the data for a specific property in the collection.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim instance As TransactionPropertyCollection
Dim propertyName As String
Dim value As Object
value = instance(propertyName)
instance(propertyName) = value
Syntax
'Declaration
Public MustOverride Default Property Item ( _
propertyName As String _
) As Object
public abstract Object this [
string propertyName
] { get; set; }
public:
virtual property Object^ default [String^] {
Object^ get (String^ propertyName) abstract;
void set (String^ propertyName, Object^ value) abstract;
}
/** @property */
public abstract Object get_Item (String propertyName)
/** @property */
public abstract void set_Item (String propertyName, Object value)
Parameters
- propertyName
Contains the name of the property to get or set. The name is not case-sensitive.
Property Value
Returns Object.
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. |
Remarks
If this property is being retrieved, and the property that is identified by propertyName is not present in the collection, this property returns null.
If this property is being set, and the property that is identified by propertyName is not present in the collection, the property is added to the collection.
Setting an item in the collection to a null object causes the item to be removed from the collection.
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