This topic has not yet been rated - Rate this topic

ReceiveActivity.GetWorkflowServiceAttributes Method

Returns the WorkflowServiceAttributes attributes for the service implemented by the ReceiveActivity activity. These attributes include items like the AddressFilterMode, the ConfigurationName, the IncludeExceptionDetailInFaults, and whether to include exception details in any faults that are returned from the ReceiveActivity activity.

Namespace:  System.Workflow.Activities
Assembly:  System.WorkflowServices (in System.WorkflowServices.dll)
public static Object GetWorkflowServiceAttributes(
	Object dependencyObject
)

Parameters

dependencyObject
Type: System.Object
The object to retrieve the service attributes from.

Return Value

Type: System.Object
A Object that represents a WorkflowServiceAttributes object that contains service attribute data.

The WorkflowServiceAttributesProperty property is an attached dependency property defined by the ReceiveActivity activity. This dependency property is attached to the root workflow that contains the ReceiveActivity activity using the SetWorkflowServiceAttributes method call at design time.

The WorkflowServiceAttributesProperty property is used for defining service-level behavior attributes that are applied to the workflow service when it starts. These cannot be modified at runtime.

NoteNote

If the current workflow starts another workflow using an InvokeWorkflowActivity activity, the invoked workflow does not inherit the invoking workflow's service attributes.

NoteNote

If service attributes are set for a custom activity and that activity is included in a workflow, those service attributes are used. Service attributes are only used for custom activities if the custom activity itself is run as a workflow.

The following example shows how to use the GetWorkflowServiceAttributes method.


WorkflowServiceAttributes serviceAttributes = (WorkflowServiceAttributes)ReceiveActivity.GetWorkflowServiceAttributes(rootActivity);


.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.