WindowsRuntimeDesignerContext.InitializeSharedContext 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.
Creates a context and sets it as the shared context.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
static void InitializeSharedContext(System::Collections::Generic::IEnumerable<System::String ^> ^ paths);
[System.Security.SecurityCritical]
public static void InitializeSharedContext(System.Collections.Generic.IEnumerable<string> paths);
[<System.Security.SecurityCritical>]
static member InitializeSharedContext : seq<string> -> unit
Public Shared Sub InitializeSharedContext (paths As IEnumerable(Of String))
Parameters
- paths
- IEnumerable<String>
An enumerable collection of paths that are used to resolve binding requests that cannot be satisfied by the iteration context.
- Attributes
Exceptions
The shared context has already been set in this application domain.
-or-
The current application domain is not the default application domain.
-or-
The process is not running in the app container.
-or-
The computer does not have a developer license.
paths is null.
Remarks
The shared context cannot be set more than once.
WindowsRuntimeDesignerContext is supported only in the default application domain.