Export (0) Print
Expand All

WorkflowInstance.RegisterExtensionManager Method

Called by the host to register the specified extension manager, validate that all required extensions are present, and to initialize the collection of extensions to be used.

Namespace:  System.Activities.Hosting
Assembly:  System.Activities (in System.Activities.dll)

member RegisterExtensionManager : 
        extensionManager:WorkflowInstanceExtensionManager -> unit

Parameters

extensionManager
Type: System.Activities.Hosting.WorkflowInstanceExtensionManager

The extension manager to register.

Extensions are keyed by type, and a host provided extension will always be used if provided. Extensions added through Add use the runtime type of the object as the type key. Extensions providers added through Add use the decared type T of the Func<T> as the type key. Extension providers contributed by activities through the various *ActivityMetadata.AddDefaultExtensionProvider methods are dropped if a host extension exists for the declared type or if there is a broader type provided through AddDefaultExtensionProvider (ex. if Func<StreamWriter> is provided and Func<TextWriter> is provided, only Func<StreamWriter> will be kept). If an extension does not exist in the collection that is required by an activity (expressed by calling *ActivityMetadata.RequireExtension) a ValidationException is thrown.

.NET Framework

Supported in: 4.5.3, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft