[]
        
(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
object
MetadataQueryReader
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

MetadataQueryReader(IntPtr)

Initializes a new instance of the MetadataQueryReader class.

public MetadataQueryReader(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Enumerator

Gets the enumerator on the metadata names.

public IEnumerable<string> Enumerator { get; }

Property Value

System.Collections.Generic.IEnumerable<T><string>

Location

Gets the location.

public string Location { get; }

Property Value

string

QueryPaths

public IEnumerable<string> QueryPaths { get; }

Property Value

System.Collections.Generic.IEnumerable<T><string>

Methods

Dump(TextWriter, int)

Dumps all metadata.

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

Parameters

writer System.IO.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

System.Guid

GetEnumerator()

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

public IntPtr GetEnumerator()

Returns

System.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 System.IntPtr

Returns

int

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 System.IntPtr

Returns

HResult

GetMetadataByName(string)

Gets the metadata value by name.

public object GetMetadataByName(string name)

Parameters

name string

The name.

Returns

object

Value of the metadata

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

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

Operators

explicit operator MetadataQueryReader(IntPtr)

Performs an explicit conversion from System.IntPtr to MetadataQueryReader.

public static explicit operator MetadataQueryReader(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

MetadataQueryReader