WorkflowInstance.RegisterExtensionManager Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
protected:
void RegisterExtensionManager(System::Activities::Hosting::WorkflowInstanceExtensionManager ^ extensionManager);
protected void RegisterExtensionManager (System.Activities.Hosting.WorkflowInstanceExtensionManager extensionManager);
member this.RegisterExtensionManager : System.Activities.Hosting.WorkflowInstanceExtensionManager -> unit
Protected Sub RegisterExtensionManager (extensionManager As WorkflowInstanceExtensionManager)
Parameters
- extensionManager
- WorkflowInstanceExtensionManager
The extension manager to register.
Remarks
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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기