Partager via


ValueCollection.Add Method (Byte[])

The Add method adds a binary value to the ValueCollection.

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

Usage

'Usage
Dim instance As ValueCollection
Dim val As Byte()

instance.Add(val)

Syntax

'Declaration
Public MustOverride Sub Add ( _
    val As Byte() _
)
public abstract void Add (
    byte[] val
)
public:
virtual void Add (
    array<unsigned char>^ val
) abstract
public abstract void Add (
    byte[] val
)
public abstract function Add (
    val : byte[]
)

Parameters

  • val
    Contains an array of Bytes that contains the binary data to add to the ValueCollection.

Exceptions

Exception type Condition
System.ArgumentNullException

The argument is null.

System.InvalidOperationException

The value of the val parameter cannot be converted to the data type of 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.

Platforms

Target Platforms

See Also

Reference

ValueCollection Class
ValueCollection Members
Microsoft.MetadirectoryServices Namespace