MetadataStore Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
An in-memory collection of hash tables that allows the rapid lookup of designer elements by Type.
Namespace: System.Activities.Design.Metadata
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public NotInheritable Class MetadataStore
'Usage
You do not need to declare an instance of a static class in order to access its members.
public static class MetadataStore
public ref class MetadataStore abstract sealed
public final class MetadataStore
[<AbstractClassAttribute>]
[<SealedAttribute>]
type MetadataStore = class end
Remarks
The metadata store contains custom attribute metadata, such as the association between designers and types. Custom attributes can be defined in an AttributeTable and added to the metadata store. After the attributes are added, they will appear in calls made to TypeDescriptor.
Examples
internal class Metadata : IRegisterMetadata
{
private AttributeTable attributes;
// Called by the designer to register any design-time metadata.
public void Register()
{
AttributeTableBuilder builder = new AttributeTableBuilder();
// Add the adorner provider to the design-time metadata.
builder.AddCustomAttributes(
typeof(FlowChart),
new DesignerAttribute(typeof(FlowChartDesigner)));
builder.AddCustomAttributes(
typeof(State),
new DesignerAttribute(typeof(StateDesigner)));
MetadataStore.AddAttributeTable(builder.CreateTable());
}
}
Inheritance Hierarchy
System.Object
System.Activities.Design.Metadata.MetadataStore
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4