forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMetadataStore.xml
80 lines (69 loc) · 3.81 KB
/
MetadataStore.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<Type Name="MetadataStore" FullName="System.Activities.Presentation.Metadata.MetadataStore">
<TypeSignature Language="C#" Value="public static class MetadataStore" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed MetadataStore extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Activities.Presentation.Metadata.MetadataStore" />
<AssemblyInfo>
<AssemblyName>System.Activities.Presentation</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>An in-memory collection of hash tables that allows the rapid lookup of designer elements by <see cref="T:System.Type" />.</summary>
<remarks>
<format type="text/markdown"><] how to create custom activity designers, see [How to: Create a Custom Activity Designer](~/docs/framework/windows-workflow-foundation/how-to-create-a-custom-activity-designer.md).
```csharp
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 custom attributes to associate the ActivityDesigner1 custom designer
// with the custom activity MyActivity.
builder.AddCustomAttributes(
typeof(MyActivity),
new DesignerAttribute(typeof(ActivityDesigner1)));
MetadataStore.AddAttributeTable(builder.CreateTable());
}
}
```
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="AddAttributeTable">
<MemberSignature Language="C#" Value="public static void AddAttributeTable (System.Activities.Presentation.Metadata.AttributeTable table);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void AddAttributeTable(class System.Activities.Presentation.Metadata.AttributeTable table) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Presentation.Metadata.MetadataStore.AddAttributeTable(System.Activities.Presentation.Metadata.AttributeTable)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities.Presentation</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="table" Type="System.Activities.Presentation.Metadata.AttributeTable" />
</Parameters>
<Docs>
<param name="table">The table to add.</param>
<summary>Adds the given table to the current <see cref="T:System.AppDomain" /> object’s attribute store.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
After the table is added, calls to <xref:System.ComponentModel.TypeDescriptor> will use attributes defined in the newly added table. Multiple tables can be added to the attribute store. In the case of conflicts, attributes in the most recently added table are used.
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>