Partager via


Attrib.ReferenceValue Property

Gets or sets a ReferenceValue object that contains the attribute value. Use this property with single-valued attributes only. Do not use this property for multi-valued attributes.

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

Usage

'Usage
Dim instance As Attrib
Dim value As ReferenceValue

value = instance.ReferenceValue

instance.ReferenceValue = value

Syntax

'Declaration
Public MustOverride Property ReferenceValue As ReferenceValue
public abstract ReferenceValue ReferenceValue { get; set; }
public:
virtual property ReferenceValue^ ReferenceValue {
    ReferenceValue^ get () abstract;
    void set (ReferenceValue^ value) abstract;
}
/** @property */
public abstract ReferenceValue get_ReferenceValue ()

/** @property */
public abstract void set_ReferenceValue (ReferenceValue value)
public abstract function get ReferenceValue () : ReferenceValue

public abstract function set ReferenceValue (value : ReferenceValue)

Property Value

Returns a ReferenceValue object.

Exceptions

Exception type Condition
System.ArgumentNullException

Null reference value.

System.InvalidOperationException

The Attrib object is being set to one of the following:

  • A non-binary value

  • A null value

  • More than one value

If you are unsure of the data type of an Attrib object, use the Value property or the Values property for multi-valued attributes.

Remarks

This property has a number of restrictions on its use:

If you specify a reference to an object that does not exist in the connector space, a placeholder object is created at that location.

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

Attrib Class
Attrib Members
Microsoft.MetadirectoryServices Namespace
ReferenceValue
Attrib Class