Show / Hide Table of Contents

# Class X501DistinguishedName

This class represents a distinguished name (DN) as defined in X.501. See the X.500 standards, RFC 5280, and an OID repository for more information.

##### Inheritance

object
X501DistinguishedName

##### Implements

IDisposable

##### Inherited Members

object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()

###### Namespace: pdftron.Crypto

###### Assembly: PDFNet.dll

##### Syntax

    public sealed class X501DistinguishedName : IDisposable

### Methods

#### Dispose()

##### Declaration

    public override sealed void Dispose()

#### Dispose(bool)

##### Declaration

    [HandleProcessCorruptedStateExceptions]
    protected void Dispose(bool A_0)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | A_0 |

#### ~X501DistinguishedName()

##### Declaration

    protected ~X501DistinguishedName()

#### GetAllAttributesAndValues()

Retrieves all of the attribute-type-to-value pairs in this distinguished name.

##### Declaration

    public X501AttributeTypeAndValue[] GetAllAttributesAndValues()

##### Returns

Type | Description
--- | ---
X501AttributeTypeAndValue[] | a container of X501AttributeTypeAndValue objects

#### GetStringValuesForAttribute(ObjectIdentifier)

Returns a container full of string representations of all the values in this distinguished name that match a particular attribute's object identifier (OID). If an attribute's OID defines the corresponding value to not be of a string type, then that value will not be returned from this function.

##### Declaration

    public string[] GetStringValuesForAttribute(ObjectIdentifier in_oid)

##### Parameters

Type | Name | Description
--- | --- | ---
ObjectIdentifier | in_oid | the object identifier representing the sought attribute.

##### Returns

Type | Description
--- | ---
string[] | a container of string values containing any strings associated with the supplied attribute

#### HasAttribute(ObjectIdentifier)

Returns whether this distinguished name contains a particular attribute, identified by its object identifier (OID).

##### Declaration

    public bool HasAttribute(ObjectIdentifier in_oid)

##### Parameters

Type | Name | Description
--- | --- | ---
ObjectIdentifier | in_oid | the object identifier representing the sought attribute.

##### Returns

Type | Description
--- | ---
bool | a boolean value representing whether this distinguished name contains the supplied attribute

### Implements

IDisposable