[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.WIC.MetadataQueryReader

Class MetadataQueryReader

Namespace
GrapeCity.Documents.DX.WIC
Assembly
GcDocs.DX.Windows.dll

IWICMetadataQueryReader

[Guid("30989668-E1C9-4597-B395-458EEDB808DF")]
public class MetadataQueryReader : ComObject, IDisposable, IUnknown
Inheritance
MetadataQueryReader
Implements
Derived
Inherited Members

Constructors

MetadataQueryReader(IntPtr)

Initializes a new instance of the MetadataQueryReader class.

public MetadataQueryReader(IntPtr nativePtr)

Parameters

nativePtr IntPtr

The native pointer.

Properties

Enumerator

Gets the enumerator on the metadata names.

public IEnumerable<string> Enumerator { get; }

Property Value

IEnumerable<string>

Location

Gets the location.

public string Location { get; }

Property Value

string

QueryPaths

public IEnumerable<string> QueryPaths { get; }

Property Value

IEnumerable<string>

Methods

Dump(TextWriter, int)

Dumps all metadata.

public void Dump(TextWriter writer, int level = 0)

Parameters

writer TextWriter

The text writer output.

level int

The level of tabulations.

Remarks

This is a simple helper method to dump metadata stored in this instance.

GetContainerFormat()

HRESULT IWICMetadataQueryReader::GetContainerFormat([Out] GUID* pguidContainerFormat)

public Guid GetContainerFormat()

Returns

Guid

GetEnumerator()

HRESULT IWICMetadataQueryReader::GetEnumerator([Out] void** ppIEnumString)

public IntPtr GetEnumerator()

Returns

IntPtr

GetLocation(int, IntPtr)

HRESULT IWICMetadataQueryReader::GetLocation([In] unsigned int cchMaxLength,[In] void* wzNamespace,[Out] unsigned int* pcchActualLength)

public int GetLocation(int cchMaxLength, IntPtr @namespace)

Parameters

cchMaxLength int
namespace IntPtr

Returns

int

GetMetadataByName(string)

Gets the metadata value by name.

public object GetMetadataByName(string name)

Parameters

name string

The name.

Returns

object

Value of the metadata

GetMetadataByName(string, IntPtr)

HRESULT IWICMetadataQueryReader::GetMetadataByName([In] const wchar_t* wzName,[In] void* pvarValue)

public HResult GetMetadataByName(string name, IntPtr varValueRef)

Parameters

name string
varValueRef IntPtr

Returns

HResult

TryGetMetadataByName(string)

Try to get the metadata value by name.

public object TryGetMetadataByName(string name)

Parameters

name string

The name.

Returns

object

the metadata value, or null if the metadata was not found

TryGetMetadataByName(string, out object)

Try to get the metadata value by name.

public HResult TryGetMetadataByName(string name, out object value)

Parameters

name string

The name.

value object

The metadata value, or null if the metadata was not found or an error occurred

Returns

HResult

The WIC error code

Operators

explicit operator MetadataQueryReader(IntPtr)

Performs an explicit conversion from IntPtr to MetadataQueryReader.

public static explicit operator MetadataQueryReader(IntPtr nativePointer)

Parameters

nativePointer IntPtr

Returns

MetadataQueryReader