Class MetadataViewAttribute
- Namespace
- Microsoft.VisualStudio.Composition
- Assembly
- Microsoft.VisualStudio.Composition.dll
Annotates an interface as a metadata view, which is a strongly-typed view over the metadata of an export.
[AttributeUsage(AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
[Conditional("NEVER")]
public sealed class MetadataViewAttribute : Attribute
- Inheritance
-
MetadataViewAttribute
- Inherited Members
Remarks
This attribute serves as a marker for the source generator to identify which interfaces are metadata views and to generate the appropriate implementation classes for them.
Because this attribute is marked with Conditional("NEVER"), applications of it are omitted from compiled metadata and therefore do not affect runtime metadata-view resolution.