Partager via


Attrib.BinaryValue Property

Gets or sets the binary representation of 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 Byte()

value = instance.BinaryValue

instance.BinaryValue = value

Syntax

'Declaration
Public MustOverride Property BinaryValue As Byte()
public abstract byte[] BinaryValue { get; set; }
public:
virtual property array<unsigned char>^ BinaryValue {
    array<unsigned char>^ get () abstract;
    void set (array<unsigned char>^ value) abstract;
}
/** @property */
public abstract byte[] get_BinaryValue ()

/** @property */
public abstract void set_BinaryValue (byte[] value)
public abstract function get BinaryValue () : byte[]

public abstract function set BinaryValue (value : byte[])

Property Value

Returns a Byte object.

Exceptions

Exception type Condition
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.

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
Attrib Class