Partager via


Attrib

The Attrib class represents an attribute associated with a CSEntry or MVEntry object. An instance of this abstract class can be created only in a derived class.

The Attrib class is derived from the System.Object class.

Public Methods

The Attrib class has the following public methods.

Method Description
Delete

Removes an attribute and all the attribute values from the object.

Equals

Determines if two objects are equal.

GetHashCode

Serves as a hash function for a particular type.

GetType

Retrieves the Type of the current object.

ToString

Retrieves a String that represents the current object.

Public Properties

The Attrib class defines the following public properties.

Property Description
BinaryValue Data type: byte array
Access type: Read/write

Retrieves or sets the binary representation of the attribute value.

BooleanValue Data type: Boolean
Access type: Read/write

Retrieves or sets the Boolean representation of the attribute value.

DataType Data type: AttributeType
Access type: Read-only

Retrieves one of the AttributeType values that identifies the type of data contained by the attribute.

IntegerValue Data type: Int64
Access type: Read/write

Retrieves or sets the integer representation of the attribute value.

IsMultivalued Data type: Boolean
Access type: Read-only

Indicates whether the attribute is multi-valued or single-valued.

IsPresent Data type: Boolean
Access type: Read-only

Indicates whether the attribute is present in the object.

LastContributingMA Data type: ManagementAgent
Access type: Read-only

Retrieves the ManagementAgent object that most recently added a value to the attribute.

LastContributionTime Data type: DateTime
Access type: Read-only

Retrieves the local time when a value was most recently added to an MVEntry object attribute.

Name Data type: String
Access type: Read-only

Retrieves the name of the attribute.

ReferenceValue Data type: ReferenceValue
Access type: Read/write

Retrieves or sets a ReferenceValue object that contains the attribute value.

StringValue Data type: String
Access type: Read/write

Retrieves or sets the string representation of the attribute value.

Value Data type: String
Access type: Read/write

Retrieves or sets the value of a single-valued attribute. The value can contain escaped characters.

Values Data type: ValueCollection
Access type: Read/write

Retrieves or sets a ValueCollection object that contains the value or values of the attribute.

Protected Constructors

The Attrib class has the following protected constructor.

Constructor Description
Attrib

Creates an instance of the Attrib class.

Requirements

Product ILM 2007 FP1
Namespace Microsoft.MetadirectoryServices
Assembly Microsoft.MetadirectoryServices
.NET Framework .NET Framework 2.0

See Also

AttributeType
ReferenceValue
ValueCollection

Send comments about this topic to Microsoft

Build date: 2/16/2009