Compartilhar via


CSEntry.Item Property

Gets the Attrib object for an attribute in the CSEntry object.

Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)

Usage

'Usage
Dim instance As CSEntry
Dim attributeName As String
Dim value As Attrib

value = instance(attributeName)

Syntax

'Declaration
Public MustOverride ReadOnly Default Property Item ( _
    attributeName As String _
) As Attrib
public abstract Attrib this [
    string attributeName
] { get; }
public:
virtual property Attrib^ default [String^] {
    Attrib^ get (String^ attributeName) abstract;
}
/** @property */
public abstract Attrib get_Item (String attributeName)

Parameters

  • attributeName
    Contains a string that identifies the attribute. The attribute name is not case-sensitive.

Property Value

Returns an Attrib object.

Example

The following examples demonstrate how to use this property.

csentry("displayName").Item.Value = "My Display Name"
csentry["displayName"].Item.Value = "My Display Name";

Exceptions

Exception type Condition
System.ArgumentNullException

The CSEntry object cannot be found.

AttributeNotDefinedAsSourceException

The attribute is not defined as a source attribute for the current flow.

AttributeNotInInclusionListException

The attribute that is identified by the attributeName parameter is not selected for use by Microsoft Identity Integration Server (MIIS).

NoSuchAttributeException

The attribute that is identified by the attributeName parameter is not present in the schema.

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

Change History

See Also

Reference

CSEntry Class
CSEntry Members
Microsoft.MetadirectoryServices Namespace
Attrib Class
NoSuchAttributeException
AttributeNotInInclusionListException Class
CSEntry Class