1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="ExportDefinition" FullName="System.ComponentModel.Composition.Primitives.ExportDefinition">
3 <TypeSignature Language="C#" Value="public class ExportDefinition" />
4 <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ExportDefinition extends System.Object" />
6 <AssemblyName>System.ComponentModel.Composition</AssemblyName>
7 <AssemblyVersion>4.0.0.0</AssemblyVersion>
10 <BaseTypeName>System.Object</BaseTypeName>
14 <remarks>To be added.</remarks>
16 <attribution license="cc4" from="Microsoft" modified="false" />
17 <para>Describes the contract that a particular <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> object satisfies.</para>
21 <Member MemberName=".ctor">
22 <MemberSignature Language="C#" Value="protected ExportDefinition ();" />
23 <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor() cil managed" />
24 <MemberType>Constructor</MemberType>
26 <AssemblyVersion>4.0.0.0</AssemblyVersion>
31 <attribution license="cc4" from="Microsoft" modified="false" />
32 <para>Derived types that call this constructor must override the <see cref="P:System.ComponentModel.Composition.Primitives.ExportDefinition.ContractName" /> property and optionally, the <see cref="P:System.ComponentModel.Composition.Primitives.ExportDefinition.Metadata" /> property. By default, <see cref="P:System.ComponentModel.Composition.Primitives.ExportDefinition.Metadata" /> returns an empty, read-only dictionary.</para>
35 <attribution license="cc4" from="Microsoft" modified="false" />
36 <para>Initializes a new instance of the <see cref="T:System.ComponentModel.Composition.Primitives.ExportDefinition" /> class.</para>
40 <Member MemberName=".ctor">
41 <MemberSignature Language="C#" Value="public ExportDefinition (string contractName, System.Collections.Generic.IDictionary<string,object> metadata);" />
42 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string contractName, class System.Collections.Generic.IDictionary`2<string, object> metadata) cil managed" />
43 <MemberType>Constructor</MemberType>
45 <AssemblyVersion>4.0.0.0</AssemblyVersion>
48 <Parameter Name="contractName" Type="System.String" />
49 <Parameter Name="metadata" Type="System.Collections.Generic.IDictionary<System.String,System.Object>" />
52 <remarks>To be added.</remarks>
54 <attribution license="cc4" from="Microsoft" modified="false" />
55 <para>Initializes a new instance of the <see cref="T:System.ComponentModel.Composition.Primitives.ExportDefinition" /> class with the specified contract name and metadata.</para>
57 <param name="contractName">
58 <attribution license="cc4" from="Microsoft" modified="false" />The contract name of the <see cref="T:System.ComponentModel.Composition.Primitives.ExportDefinition" /> object.</param>
59 <param name="metadata">
60 <attribution license="cc4" from="Microsoft" modified="false" />The metadata of the <see cref="T:System.ComponentModel.Composition.Primitives.ExportDefinition" /> or null to set the <see cref="P:System.ComponentModel.Composition.Primitives.ExportDefinition.Metadata" /> property to an empty, read-only <see cref="T:System.Collections.Generic.IDictionary`2" /> object.</param>
63 <Member MemberName="ContractName">
64 <MemberSignature Language="C#" Value="public virtual string ContractName { get; }" />
65 <MemberSignature Language="ILAsm" Value=".property instance string ContractName" />
66 <MemberType>Property</MemberType>
68 <AssemblyVersion>4.0.0.0</AssemblyVersion>
71 <ReturnType>System.String</ReturnType>
74 <value>To be added.</value>
76 <attribution license="cc4" from="Microsoft" modified="false" />
77 <para>Overrides of this property should never return null or an empty string ("").</para>
80 <attribution license="cc4" from="Microsoft" modified="false" />
81 <para>Gets the contract name.</para>
85 <Member MemberName="Metadata">
86 <MemberSignature Language="C#" Value="public virtual System.Collections.Generic.IDictionary<string,object> Metadata { get; }" />
87 <MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IDictionary`2<string, object> Metadata" />
88 <MemberType>Property</MemberType>
90 <AssemblyVersion>4.0.0.0</AssemblyVersion>
93 <ReturnType>System.Collections.Generic.IDictionary<System.String,System.Object></ReturnType>
96 <value>To be added.</value>
98 <attribution license="cc4" from="Microsoft" modified="false" />
99 <para>Overrides of this property should return a read-only <see cref="T:System.Collections.Generic.IDictionary`2" /> object with a case-sensitive, non-linguistic comparer, such as <see cref="P:System.StringComparer.Ordinal" />, and should never return null.</para>
100 <para>If the <see cref="T:System.ComponentModel.Composition.Primitives.ExportDefinition" /> does not contain metadata, return an empty <see cref="T:System.Collections.Generic.IDictionary`2" /> instead.</para>
103 <attribution license="cc4" from="Microsoft" modified="false" />
104 <para>Gets the contract metadata.</para>
108 <Member MemberName="ToString">
109 <MemberSignature Language="C#" Value="public override string ToString ();" />
110 <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" />
111 <MemberType>Method</MemberType>
113 <AssemblyVersion>4.0.0.0</AssemblyVersion>
116 <ReturnType>System.String</ReturnType>
120 <remarks>To be added.</remarks>
122 <attribution license="cc4" from="Microsoft" modified="false" />
123 <para>Returns a string representation of the export definition.</para>
126 <attribution license="cc4" from="Microsoft" modified="false" />
127 <para>A string representation of the export definition.</para>