Redigera

Dela via


IComponentDesignerStateService.SetState(IComponent, String, Object) Method

Definition

Sets a state item specified by the key for the given component.

public:
 void SetState(System::ComponentModel::IComponent ^ component, System::String ^ key, System::Object ^ value);
public void SetState (System.ComponentModel.IComponent component, string key, object value);
abstract member SetState : System.ComponentModel.IComponent * string * obj -> unit
Public Sub SetState (component As IComponent, key As String, value As Object)

Parameters

component
IComponent

The component for which to set the designer state item.

key
String

The name of the designer state item.

value
Object

The designer state item for component.

Applies to

See also