[]
IWICMetadataQueryReader
[Guid("30989668-E1C9-4597-B395-458EEDB808DF")]
public class MetadataQueryReader : ComObject, IDisposable, IUnknown
Initializes a new instance of the MetadataQueryReader class.
public MetadataQueryReader(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Gets the enumerator on the metadata names.
public IEnumerable<string> Enumerator { get; }
Gets the location.
public string Location { get; }
Gets the enumerator on all the metadata query paths. http://msdn.microsoft.com/en-us/library/windows/desktop/ee719796(v=vs.85).aspx#expressionanatomy
public IEnumerable<string> QueryPaths { get; }
Dumps all metadata.
public void Dump(TextWriter writer, int level = 0)
writer
System.IO.TextWriterThe text writer output.
level
intThe level of tabulations.
This is a simple helper method to dump metadata stored in this instance.
HRESULT IWICMetadataQueryReader::GetContainerFormat([Out] GUID* pguidContainerFormat)
public Guid GetContainerFormat()
HRESULT IWICMetadataQueryReader::GetEnumerator([Out] void** ppIEnumString)
public IntPtr GetEnumerator()
HRESULT IWICMetadataQueryReader::GetLocation([In] unsigned int cchMaxLength,[In] void* wzNamespace,[Out] unsigned int* pcchActualLength)
public int GetLocation(int cchMaxLength, IntPtr @namespace)
cchMaxLength
intnamespace
System.IntPtrHRESULT IWICMetadataQueryReader::GetMetadataByName([In] const wchar_t* wzName,[In] void* pvarValue)
public HResult GetMetadataByName(string name, IntPtr varValueRef)
name
stringvarValueRef
System.IntPtrGets the metadata value by name.
public object GetMetadataByName(string name)
name
stringThe name.
Value of the metadata
Try to get the metadata value by name.
public HResult TryGetMetadataByName(string name, out object value)
name
stringThe name.
value
objectThe metadata value, or null if the metadata was not found or an error occurred
The WIC error code
Try to get the metadata value by name.
public object TryGetMetadataByName(string name)
name
stringThe name.
the metadata value, or null if the metadata was not found
Performs an explicit conversion from System.IntPtr to MetadataQueryReader.
public static explicit operator MetadataQueryReader(IntPtr nativePointer)
nativePointer
System.IntPtr