Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# DocumentInfoDictionary Class

Namespace: id3.Document

## Definition

Represents a dictionary of document information.
Python

    class DocumentInfoDictionary

Dart

    class DocumentInfoDictionary implements Finalizable

C#

    public partial class DocumentInfoDictionary

Java

    public class DocumentInfoDictionary implements AutoCloseable, Serializable

Swift

    public class DocumentInfoDictionary

C

    typedef struct id3DocumentInfoDictionary *ID3_DOCUMENT_INFO_DICTIONARY;

## Usage

Python

    documentInfoDictionaryInstance = DocumentInfoDictionary()
    # ...

Explicit destruction

    # ...
    del documentInfoDictionaryInstance

Dart

    final documentInfoDictionaryInstance = sdk.DocumentInfoDictionary();
    // ...

Explicit destruction

    // ...
    documentInfoDictionaryInstance.dispose()

C#

    using (var documentInfoDictionaryInstance = new DocumentInfoDictionary())
    {
       // ...
    }

Explicit destruction

    var documentInfoDictionaryInstance = new DocumentInfoDictionary()
    // ...
    documentInfoDictionaryInstance.Dispose()

Java

    try (DocumentInfoDictionary documentInfoDictionaryInstance = new DocumentInfoDictionary()) {
    // ...
    }

Explicit destruction

    DocumentInfoDictionary documentInfoDictionaryInstance = new DocumentInfoDictionary();
    // ...
    documentInfoDictionaryInstance.close();

Swift

    private var documentInfoDictionaryInstance: DocumentInfoDictionary? = nil
    documentInfoDictionaryInstance = try DocumentInfoDictionary()

C

    ID3_DOCUMENT_INFO_DICTIONARY hDocumentInfoDictionary{};
    int err = id3DocumentInfoDictionary_Initialize(&hDocumentInfoDictionary);
    if (err == ID3_SUCCESS) {
        // ...
        id3DocumentInfoDictionary_Dispose(&hDocumentInfoDictionary);
    }

## Properties

Name | Type | Description
--- | --- | ---
count | int | Gets the number of elements contained in the dict
keys | StringList | Gets a string list containing the keys in the dict.
operator [string key] | DocumentInfo | Gets or sets the element for the key in the dict.

## Iteration

This class supports iteration in Dart, C#, Java and Python.

The iteration is done on keys

## Methods

Name | Description
--- | ---
add | Adds an item to the DocumentInfoDictionary object.
clear | Clears the DocumentInfoDictionary object.
clone | Clones the DocumentInfoDictionary object.
containsKey | Determines whether the DocumentInfoDictionaryobject contains the specified key.
get | Gets an item of the DocumentInfoDictionary object.
getCount | Gets the number of elements in the DocumentInfoDictionary object.
remove | Removes an element of the DocumentInfoDictionary object.
set | Sets an item of the DocumentInfoDictionary object.