RuleSetReference RuleSetReference RuleSetReference RuleSetReference Class

定義

警告

此 API 現已淘汰。

RuleSet 的名稱保留在工作流程上的 RuleSetCollectionHolds the name of a RuleSet in the RuleSetCollection on the workflow. 這個類別無法被繼承。This class cannot be inherited.

public ref class RuleSetReference sealed : System::Workflow::ComponentModel::DependencyObject
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.Rules.Design.RuleSetReferenceTypeConverter))]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.Rules.RuleSetReferenceValidator))]
public sealed class RuleSetReference : System.Workflow.ComponentModel.DependencyObject
type RuleSetReference = class
    inherit DependencyObject
Public NotInheritable Class RuleSetReference
Inherits DependencyObject
繼承
RuleSetReferenceRuleSetReferenceRuleSetReferenceRuleSetReference
屬性

範例

下列程式碼範例示範如何建立 RuleSetReference 類別的新執行個體,並將其設定為 PolicyActivity.RuleSetReference 屬性的值。The following code example shows how to create a new instance of the RuleSetReference class and set it to the value of the PolicyActivity.RuleSetReference property. 這個程式碼範例是 SimplePolicyWorkflow.designer.cs 檔案中<RuleActionTrackingEventSample SDK>範例的一部分。This code example is part of the RuleActionTrackingEventSample SDK Sample from the SimplePolicyWorkflow.designer.cs file. 如需詳細資訊,請參閱 < RuleActionTrackingEvent 範例For more information, see RuleActionTrackingEvent Sample.

this.CanModifyActivities = true;
System.Workflow.Activities.Rules.RuleSetReference rulesetreference1 = new System.Workflow.Activities.Rules.RuleSetReference();
this.simpleDiscountPolicy = new System.Workflow.Activities.PolicyActivity();
// 
// simpleDiscountPolicy
// 
this.simpleDiscountPolicy.Name = "simpleDiscountPolicy";
rulesetreference1.RuleSetName = "DiscountRuleSet";
this.simpleDiscountPolicy.RuleSetReference = rulesetreference1;
// 
// SimplePolicyWorkflow
// 
this.Activities.Add(this.simpleDiscountPolicy);
this.Name = "SimplePolicyWorkflow";
this.Completed += new System.EventHandler(this.WorkflowCompleted);
this.CanModifyActivities = false;
Me.CanModifyActivities = True
Dim rulesetreference1 As System.Workflow.Activities.Rules.RuleSetReference = New System.Workflow.Activities.Rules.RuleSetReference
Me.simpleDiscountPolicy = New System.Workflow.Activities.PolicyActivity
' 
' simpleDiscountPolicy
' 
Me.simpleDiscountPolicy.Name = "simpleDiscountPolicy"
rulesetreference1.RuleSetName = "DiscountRuleSet"
Me.simpleDiscountPolicy.RuleSetReference = rulesetreference1
' 
' SimplePolicyWorkflow
' 
Me.Activities.Add(Me.simpleDiscountPolicy)
Me.Name = "SimplePolicyWorkflow"
AddHandler Completed, AddressOf Me.OnWorkflowCompleted
Me.CanModifyActivities = False

建構函式

RuleSetReference() RuleSetReference() RuleSetReference() RuleSetReference()

初始化 RuleSetReference 類別的新執行個體。Initializes a new instance of the RuleSetReference class.

RuleSetReference(String) RuleSetReference(String) RuleSetReference(String) RuleSetReference(String)

使用 RuleSetReference 的名稱,初始化 RuleSet 類別的新執行個體。Initializes a new instance of the RuleSetReference class using the name of the RuleSet.

屬性

DesignMode DesignMode DesignMode DesignMode

取得值,這個值會指出這個執行個體是在設計模式或執行階段模式中。Gets the value that indicates whether this instance is in design or run-time mode.

(Inherited from DependencyObject)
ParentDependencyObject ParentDependencyObject ParentDependencyObject ParentDependencyObject

取得 DependencyObject 圖形中的父代 DependencyObjectGets the parent DependencyObject in the DependencyObject graph.

(Inherited from DependencyObject)
RuleSetName RuleSetName RuleSetName RuleSetName

取得或設定活動要評估之 RuleSet 的名稱。Gets or sets the name of the RuleSet that the activity evaluates.

Site Site Site Site

取得或設定 SiteDependencyObject 元件的參考。Gets or sets a reference to the Site component of the DependencyObject.

(Inherited from DependencyObject)
UserData UserData UserData UserData

取得 IDictionary,它會將自訂資料與這個類別執行個體產生關聯。Gets an IDictionary that associates custom data with this class instance.

(Inherited from DependencyObject)

方法

AddHandler(DependencyProperty, Object) AddHandler(DependencyProperty, Object) AddHandler(DependencyProperty, Object) AddHandler(DependencyProperty, Object)

加入 DependencyObject之事件的處理常式。Adds a handler for an event of a DependencyObject.

(Inherited from DependencyObject)
Dispose() Dispose() Dispose() Dispose()

釋放 DependencyObject 使用的所有資源。Releases all the resources used by the DependencyObject.

(Inherited from DependencyObject)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

會釋放 Unmanaged 資源,並選擇性地釋放 DependencyObject 所使用的 Managed 資源。Releases the unmanaged resources and optionally releases the managed resources used by DependencyObject.

(Inherited from DependencyObject)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBinding(DependencyProperty) GetBinding(DependencyProperty) GetBinding(DependencyProperty) GetBinding(DependencyProperty)

提供存取與特定 ActivityBind 相關聯的 DependencyPropertyProvides access to the ActivityBind associated with the specific DependencyProperty.

(Inherited from DependencyObject)
GetBoundValue(ActivityBind, Type) GetBoundValue(ActivityBind, Type) GetBoundValue(ActivityBind, Type) GetBoundValue(ActivityBind, Type)

擷取 Object,其為 ActivityBind 的主體。Retrieves the Object that is the subject of an ActivityBind.

(Inherited from DependencyObject)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetInvocationList<T>(DependencyProperty) GetInvocationList<T>(DependencyProperty) GetInvocationList<T>(DependencyProperty) GetInvocationList<T>(DependencyProperty)

取得陣列,這個陣列包含指定 DependencyProperty 的委派。Gets an array that contains the delegates for the specified DependencyProperty.

(Inherited from DependencyObject)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

提供存取所指定 DependencyProperty 的值。Provides access to the value of the designated DependencyProperty.

(Inherited from DependencyObject)
GetValueBase(DependencyProperty) GetValueBase(DependencyProperty) GetValueBase(DependencyProperty) GetValueBase(DependencyProperty)

提供對 DependencyProperty 其繫結物件的存取,並略過 GetValue(DependencyProperty) 覆寫。Provides access to the bound object of a DependencyProperty and bypasses the GetValue(DependencyProperty) override.

(Inherited from DependencyObject)
InitializeProperties() InitializeProperties() InitializeProperties() InitializeProperties()

在衍生類別中覆寫時,在相依性屬性上執行初始化。Performs initialization on dependency properties when overridden in a derived class.

(Inherited from DependencyObject)
IsBindingSet(DependencyProperty) IsBindingSet(DependencyProperty) IsBindingSet(DependencyProperty) IsBindingSet(DependencyProperty)

指出 DependencyProperty 的值是否已設定為繫結。Indicates whether the value of a DependencyProperty is set as a binding. 請參閱 SetBinding(DependencyProperty, ActivityBind)See SetBinding(DependencyProperty, ActivityBind).

(Inherited from DependencyObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
MetaEquals(DependencyObject) MetaEquals(DependencyObject) MetaEquals(DependencyObject) MetaEquals(DependencyObject)

判斷這個 metapropertiesDependencyObjectmetaproperties是否相等於參數化 DependencyObject 的 。Determines whether the metaproperties of this DependencyObject equals the metaproperties of the parameterized DependencyObject.

(Inherited from DependencyObject)
RemoveHandler(DependencyProperty, Object) RemoveHandler(DependencyProperty, Object) RemoveHandler(DependencyProperty, Object) RemoveHandler(DependencyProperty, Object)

EventHandler 從相關聯的 DependencyProperty 移除。Removes an EventHandler from an associated DependencyProperty.

(Inherited from DependencyObject)
RemoveProperty(DependencyProperty) RemoveProperty(DependencyProperty) RemoveProperty(DependencyProperty) RemoveProperty(DependencyProperty)

DependencyPropertyDependencyObject 中移除。Removes a DependencyProperty from the DependencyObject.

(Inherited from DependencyObject)
SetBinding(DependencyProperty, ActivityBind) SetBinding(DependencyProperty, ActivityBind) SetBinding(DependencyProperty, ActivityBind) SetBinding(DependencyProperty, ActivityBind)

設定所指定 ActivityBindDependencyPropertySets the ActivityBind for the specified DependencyProperty.

(Inherited from DependencyObject)
SetBoundValue(ActivityBind, Object) SetBoundValue(ActivityBind, Object) SetBoundValue(ActivityBind, Object) SetBoundValue(ActivityBind, Object)

設定目標 ActivityBind 的值。Sets the value of the target ActivityBind.

(Inherited from DependencyObject)
SetReadOnlyPropertyValue(DependencyProperty, Object) SetReadOnlyPropertyValue(DependencyProperty, Object) SetReadOnlyPropertyValue(DependencyProperty, Object) SetReadOnlyPropertyValue(DependencyProperty, Object)

設定唯讀的 DependencyProperty 其值。Sets the value of a DependencyProperty, which is read-only.

(Inherited from DependencyObject)
SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object)

DependencyProperty 的值設定給物件。Sets the value of the DependencyProperty to the object.

(Inherited from DependencyObject)
SetValueBase(DependencyProperty, Object) SetValueBase(DependencyProperty, Object) SetValueBase(DependencyProperty, Object) SetValueBase(DependencyProperty, Object)

DependencyProperty 的值設定為指定的 Object,略過 SetValue(DependencyProperty, Object)Sets the value of the DependencyProperty to the specified Object, bypassing the SetValue(DependencyProperty, Object).

(Inherited from DependencyObject)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

事件

IComponent.Disposed IComponent.Disposed IComponent.Disposed IComponent.Disposed

表示處理元件 Disposed 事件的方法。Represents the method that handles the Disposed event of a component.

(Inherited from DependencyObject)

適用於