ActivityToolboxItem クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
ワークフロー デザイナー内のアクティビティに関連付けられるすべてのツールボックス項目の基本クラスを提供します。
public ref class ActivityToolboxItem : System::Drawing::Design::ToolboxItem
[System.Serializable]
public class ActivityToolboxItem : System.Drawing.Design.ToolboxItem
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public class ActivityToolboxItem : System.Drawing.Design.ToolboxItem
[<System.Serializable>]
type ActivityToolboxItem = class
inherit ToolboxItem
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type ActivityToolboxItem = class
inherit ToolboxItem
Public Class ActivityToolboxItem
Inherits ToolboxItem
- 継承
- 属性
例
カスタム アクティビティのための完全な ActivityToolboxItem クラスの例を次に示します。 この例では、CreateComponentsCore 内に 2 つのカスタム アクティビティを配置するために、ParallelActivity メソッドがオーバーライドされます。
[Serializable]
internal sealed class CustomActivityToolboxItem : ActivityToolboxItem
{
public CustomActivityToolboxItem(Type type)
: base(type)
{
}
private CustomActivityToolboxItem(SerializationInfo info, StreamingContext context)
{
Deserialize(info, context);
}
protected override IComponent[] CreateComponentsCore(IDesignerHost designerHost)
{
CompositeActivity parallel = new ParallelActivity();
parallel.Activities.Add(new CustomActivity());
parallel.Activities.Add(new CustomActivity());
return new IComponent[] { parallel };
}
}
<Serializable()> _
Friend Class CustomActivityToolboxItem
Inherits ActivityToolboxItem
Public Sub New(ByVal type As Type)
MyBase.new(type)
End Sub
Private Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)
Deserialize(info, context)
End Sub
Protected Overrides Function CreateComponentsCore(ByVal designerHost As IDesignerHost) As IComponent()
Dim parallel As New ParallelActivity()
parallel.Activities.Add(New CustomActivity())
parallel.Activities.Add(New CustomActivity())
Return New IComponent() {parallel}
End Function
End Class
注釈
注意
ここでは、廃止された型と名前空間について説明します。 詳細については、「.NET 4.5 での Windows Workflow Foundation の新機能」を参照してください。
Activity クラスに関連付けられるすべてのツールボックス項目は、ActivityToolboxItem から派生します。 このクラスは、デザイン時環境のツールボックスに Activity クラスをグラフィック表示し、それをユーザーがデザイン サーフェイスにドラッグすると、関連付けられた Activity クラスのインスタンスを作成します。 アクティビティ ツールボックス項目は通常、デザイン モードのドキュメントで呼び出されると作成されるアクティビティを表します。
このクラスは、ToolboxItem クラスから直接継承します。
コンストラクター
| ActivityToolboxItem() |
ActivityToolboxItem クラスの新しいインスタンスを初期化します。 |
| ActivityToolboxItem(SerializationInfo, StreamingContext) |
指定した ActivityToolboxItem と SerializationInfo を使用して、StreamingContext クラスの新しいインスタンスを初期化します。 |
| ActivityToolboxItem(Type) |
指定した型の ActivityToolboxItem コンポーネントを作成する Activity クラスの新しいインスタンスを初期化します。 |
プロパティ
| AssemblyName |
ツールボックス項目が作成する型が含まれるアセンブリの名前を取得または設定します。 (継承元 ToolboxItem) |
| Bitmap |
ツールボックスでツールボックス項目を表すビットマップを取得または設定します。 (継承元 ToolboxItem) |
| Company |
この ToolboxItem の会社名を取得または設定します。 (継承元 ToolboxItem) |
| ComponentType |
この ToolboxItem のコンポーネントの型を取得します。 (継承元 ToolboxItem) |
| DependentAssemblies |
ツールボックス項目の AssemblyName を取得または設定します。 (継承元 ToolboxItem) |
| Description |
この ToolboxItem の説明を取得または設定します。 (継承元 ToolboxItem) |
| DisplayName |
ツールボックス項目の表示名を取得または設定します。 (継承元 ToolboxItem) |
| Filter |
ツールボックス項目が対象のコンポーネントで使用できるかどうかを決定するフィルターを取得または設定します。 (継承元 ToolboxItem) |
| IsTransient |
ツールボックス項目が遷移的かどうかを示す値を取得します。 (継承元 ToolboxItem) |
| Locked |
ToolboxItem がロックされているかどうかを示す値を取得します。 (継承元 ToolboxItem) |
| OriginalBitmap |
この項目のツールボックスに使用する元のビットマップを取得または設定します。 (継承元 ToolboxItem) |
| Properties |
プロパティのディクショナリを取得します。 (継承元 ToolboxItem) |
| TypeName |
ツールボックス項目が呼び出されたときに作成する IComponent の型の完全限定名を取得または設定します。 (継承元 ToolboxItem) |
| Version |
この ToolboxItem のバージョンを取得します。 (継承元 ToolboxItem) |
メソッド
イベント
| ComponentsCreated |
コンポーネントが作成された直後に発生します。 (継承元 ToolboxItem) |
| ComponentsCreating |
コンポーネントが作成されるときに発生します。 (継承元 ToolboxItem) |
明示的なインターフェイスの実装
| ISerializable.GetObjectData(SerializationInfo, StreamingContext) |
このメンバーの説明については、GetObjectData(SerializationInfo, StreamingContext) メソッドのトピックを参照してください。 (継承元 ToolboxItem) |