Attrib.StringValue Property

The StringValue property retrieves or sets the string representation of the attribute value. Use this property with single-valued attributes only. Do not use this property for multi-valued attributes.

public String StringValue {get; set;}
Public Property StringValue As String

Exceptions

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

Requirements

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

See Also

Attrib.Values
Attrib

Send comments about this topic to Microsoft

Build date: 2/16/2009