StringDict Class

Namespace: id3.Document

Definition

Represents a string dictionary.
class StringDict
class StringDict implements Finalizable
public partial class StringDict
public class StringDict implements AutoCloseable, Serializable
public class StringDict
typedef struct id3DocumentStringDict *ID3_DOCUMENT_STRING_DICT;

Usage

stringDictInstance = id3document.StringDict()

Explicit destruction

# ...
del stringDictInstance
final stringDictInstance = sdk.StringDict();
// ...

Explicit destruction

// ...
stringDictInstance.dispose()
using (var stringDictInstance = new StringDict())
{
   // ...
}

Explicit destruction

var stringDictInstance = new StringDict()
// ...
stringDictInstance.Dispose()
try (StringDict stringDictInstance = new StringDict()) {
// ...
}

Explicit destruction

StringDict stringDictInstance = new StringDict();
// ...
stringDictInstance.close();
private var stringDictInstance: StringDict? = nil
stringDictInstance = try StringDict()
ID3_DOCUMENT_STRING_DICT hStringDict{};
int err = id3DocumentStringDict_Initialize(&hStringDict);
if (err == ID3_SUCCESS) {
    // ...
    id3DocumentStringDict_Dispose(&hStringDict);
}

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]

string

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 StringDict object.

clear

Clears the StringDict object.

clone

Clones the StringDict object.

containsKey

Determines whether the StringDictobject contains the specified key.

get

Gets an item of the StringDict object.

getCount

Gets the number of elements in the StringDict object.

remove

Removes an element of the StringDict object.

set

Sets an item of the StringDict object.