Class MetadataQueryReader
[Guid("30989668-E1C9-4597-B395-458EEDB808DF")]
public class MetadataQueryReader : ComObject
- Inheritance
-
MetadataQueryReader
- Derived
Constructors
MetadataQueryReader(nint)
public MetadataQueryReader(nint nativePtr)
Parameters
nativePtr
nint
Properties
ContainerFormat
Gets the metadata query readers container format.
public Guid ContainerFormat { get; }
Property Value
Enumerator
Gets the enumerator on the metadata names.
public IEnumerable<string> Enumerator { get; }
Property Value
Location
Gets the location.
public string Location { get; }
Property Value
QueryPaths
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; }
Property Value
Methods
Dump(TextWriter, int)
Dumps all metadata.
public void Dump(TextWriter writer, int level = 0)
Parameters
writer
TextWriterThe text writer output.
level
intThe level of tabulations.
Remarks
This is a simple helper method to dump metadata stored in this instance.
GetMetadataByName(string)
Gets the metadata value by name.
public object GetMetadataByName(string name)
Parameters
name
stringThe name.
Returns
- object
Value of the metadata
TryGetMetadataByName(string)
Try to get the metadata value by name.
public object TryGetMetadataByName(string name)
Parameters
name
stringThe 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 Result TryGetMetadataByName(string name, out object value)
Parameters
name
stringThe name.
value
objectThe metadata value, or null if the metadata was not found or an error occurred
Returns
- Result
The WIC error code
Operators
explicit operator MetadataQueryReader(nint)
public static explicit operator MetadataQueryReader(nint nativePtr)
Parameters
nativePtr
nint