CorrelationAliasAttribute クラス

定義

注意事項

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

関連付け値を CorrelationParameterAttribute が示すパラメーターとは異なるパラメーターから取得する必要があるとき、関連付けパラメーターの値をオーバーライドします。 このクラスは継承できません。

public ref class CorrelationAliasAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Event | System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class CorrelationAliasAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Event | System.AttributeTargets.Method, AllowMultiple=true)]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class CorrelationAliasAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Event | System.AttributeTargets.Method, AllowMultiple=true)>]
type CorrelationAliasAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Event | System.AttributeTargets.Method, AllowMultiple=true)>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type CorrelationAliasAttribute = class
    inherit Attribute
Public NotInheritable Class CorrelationAliasAttribute
Inherits Attribute
継承
CorrelationAliasAttribute
属性

CorrelationAliasAttribute を使用して CorrelationParameterAttribute をオーバーライドする方法を次のコード例に示します。 このコード例は、CorrelatedLocalService SDK サンプルです。 詳細については、「 相関ローカル サービスのサンプル」を参照してください。

[ExternalDataExchange]
[CorrelationParameter("taskId")]
public interface ITaskService2
{
    [CorrelationInitializer]
    void CreateTask(string taskId, string assignee, string text);

    [CorrelationAlias("taskId", "e.Id")]
    event EventHandler<TaskEventArgs> TaskCompleted;
}

注釈

注意

ここでは、廃止された型と名前空間について説明します。 詳細については、「.NET 4.5 での Windows Workflow Foundation の新機能」を参照してください。

受信メッセージを適切なワークフロー インスタンスに合わせるには、メッセージとワークフロー インスタンスが 1 つのキーを共有する必要があります。 このキーは、関連付けセットと呼ばれます。 通常、キーは、単一値の関連付けセットです。 つまり、メッセージ内の ID フィールドは、スケジュール インスタンスが保持している同じ型の ID と照合できます。

CorrelationAliasAttribute は、データ交換インターフェイスのメソッドまたはイベントに適用されます。

コンストラクター

CorrelationAliasAttribute(String, String)
古い.

エイリアスされている関連付けの名前と値を検出できる場所へのパスを使用して、CorrelationAliasAttribute の新しいインスタンスを初期化します。

プロパティ

Name
古い.

エイリアスされている関連付けパラメーターの名前を取得します。

Path
古い.

関連付け値の場所を指定するパラメーター内のパスを取得します。

TypeId
古い.

派生クラスで実装されると、この Attribute の一意の識別子を取得します。

(継承元 Attribute)

メソッド

Equals(Object)
古い.

このインスタンスが、指定されたオブジェクトと等価であるかどうかを示す値を返します。

(継承元 Attribute)
GetHashCode()
古い.

このインスタンスのハッシュ コードを返します。

(継承元 Attribute)
GetType()
古い.

現在のインスタンスの Type を取得します。

(継承元 Object)
IsDefaultAttribute()
古い.

派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。

(継承元 Attribute)
Match(Object)
古い.

派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。

(継承元 Attribute)
MemberwiseClone()
古い.

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()
古い.

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)
古い.

一連の名前を対応する一連のディスパッチ識別子に割り当てます。

(継承元 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)
古い.

オブジェクトの型情報を取得します。この情報はインターフェイスの型情報の取得に使用できます。

(継承元 Attribute)
_Attribute.GetTypeInfoCount(UInt32)
古い.

オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。

(継承元 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)
古い.

オブジェクトによって公開されたプロパティおよびメソッドへのアクセスを提供します。

(継承元 Attribute)

適用対象