1<?xml version="1.0" encoding="utf-8"?>
2<Type Name="IComponentDesignerStateService" FullName="System.ComponentModel.Design.IComponentDesignerStateService">
3  <TypeSignature Language="C#" Value="public interface IComponentDesignerStateService" />
4  <AssemblyInfo>
5    <AssemblyName>System.Design</AssemblyName>
6    <AssemblyVersion>2.0.0.0</AssemblyVersion>
7  </AssemblyInfo>
8  <Interfaces />
9  <Docs>
10    <remarks>
11      <attribution license="cc4" from="Microsoft" modified="false" />
12      <para>Designer state is keyed by the component with which the designer is associated. The Web Forms design surface offers this service and component designers use the service. This is an optional host service, and control designers should not assume it will always be provided. </para>
13      <para>Designer state is represented as a set of name/value pairs, in the form of a dictionary. Values stored in the dictionary must be serializable. The specified component should be sited in the designer and should have a non-empty name.</para>
14      <block subset="none" type="note">
15        <para>Do not store sensitive information to the <see cref="T:System.ComponentModel.Design.IComponentDesignerStateService" />. Sensitive information includes password and authentication data, or any data you do not want to expose to an unwanted source. </para>
16      </block>
17    </remarks>
18    <summary>
19      <attribution license="cc4" from="Microsoft" modified="false" />
20      <para>Allows a designer to store and retrieve its state.</para>
21    </summary>
22  </Docs>
23  <Members>
24    <Member MemberName="GetState">
25      <MemberSignature Language="C#" Value="public object GetState (System.ComponentModel.IComponent component, string key);" />
26      <MemberType>Method</MemberType>
27      <AssemblyInfo>
28        <AssemblyVersion>2.0.0.0</AssemblyVersion>
29      </AssemblyInfo>
30      <ReturnValue>
31        <ReturnType>System.Object</ReturnType>
32      </ReturnValue>
33      <Parameters>
34        <Parameter Name="component" Type="System.ComponentModel.IComponent" />
35        <Parameter Name="key" Type="System.String" />
36      </Parameters>
37      <Docs>
38        <remarks>To be added.</remarks>
39        <summary>
40          <attribution license="cc4" from="Microsoft" modified="false" />
41          <para>Gets a state item specified by the key for the given component.</para>
42        </summary>
43        <returns>
44          <attribution license="cc4" from="Microsoft" modified="false" />
45          <para>The designer state for <paramref name="component" /> specified by <paramref name="key" />.</para>
46        </returns>
47        <param name="component">
48          <attribution license="cc4" from="Microsoft" modified="false" />The component for which to retrieve the designer state item.</param>
49        <param name="key">
50          <attribution license="cc4" from="Microsoft" modified="false" />The name of the designer state item.</param>
51      </Docs>
52    </Member>
53    <Member MemberName="SetState">
54      <MemberSignature Language="C#" Value="public void SetState (System.ComponentModel.IComponent component, string key, object value);" />
55      <MemberType>Method</MemberType>
56      <AssemblyInfo>
57        <AssemblyVersion>2.0.0.0</AssemblyVersion>
58      </AssemblyInfo>
59      <ReturnValue>
60        <ReturnType>System.Void</ReturnType>
61      </ReturnValue>
62      <Parameters>
63        <Parameter Name="component" Type="System.ComponentModel.IComponent" />
64        <Parameter Name="key" Type="System.String" />
65        <Parameter Name="value" Type="System.Object" />
66      </Parameters>
67      <Docs>
68        <remarks>To be added.</remarks>
69        <summary>
70          <attribution license="cc4" from="Microsoft" modified="false" />
71          <para>Sets a state item specified by the key for the given component.</para>
72        </summary>
73        <param name="component">
74          <attribution license="cc4" from="Microsoft" modified="false" />The component for which to set the designer state item.</param>
75        <param name="key">
76          <attribution license="cc4" from="Microsoft" modified="false" />The name of the designer state item.</param>
77        <param name="value">
78          <attribution license="cc4" from="Microsoft" modified="false" />The designer state item for <paramref name="component" />.</param>
79      </Docs>
80    </Member>
81  </Members>
82</Type>