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 value = instance(propertyName) instance(propertyName) = value |
Syntax
Visual Basic |
---|
Public MustOverride Default Property Item ( _ propertyName As String _ ) As Object |
C# |
---|
public abstract Object this [ string propertyName ] { get; set; } |
C++ |
---|
public: virtual property Object^ default [String^] { Object^ get (String^ propertyName) abstract; void set (String^ propertyName, Object^ value) abstract; } |
J# |
---|
/** @property */ public abstract Object get_Item (String propertyName) /** @property */ public abstract void set_Item (String propertyName, Object value) |
JScript |
---|
|
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.