Share via


Attrib.Value Property

Gets or sets the value of a single-valued attribute. The value can contain escaped characters. 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 String

value = instance.Value

instance.Value = value

Syntax

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

/** @property */
public abstract void set_Value (String value)
public abstract function get Value () : String

public abstract function set Value (value : String)

Property Value

Returns a String.

Exceptions

Exception type Condition
System.InvalidOperationException

The attribute contains zero or more than one value. Use 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
Values
Attrib Class