WindowsRuntimeDesignerContext.SetIterationContext(WindowsRuntimeDesignerContext) 方法

定义

因为设在计过程中程序集是重新编译的,设置上下文以处理程序集绑定请求的迭代。Sets a context to handle iterations of assembly binding requests, as assemblies are recompiled during the design process.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static void SetIterationContext(System::Runtime::DesignerServices::WindowsRuntimeDesignerContext ^ context);
[System.Security.SecurityCritical]
public static void SetIterationContext (System.Runtime.DesignerServices.WindowsRuntimeDesignerContext context);
[<System.Security.SecurityCritical>]
static member SetIterationContext : System.Runtime.DesignerServices.WindowsRuntimeDesignerContext -> unit
Public Shared Sub SetIterationContext (context As WindowsRuntimeDesignerContext)

参数

context
WindowsRuntimeDesignerContext

处理程序集绑定请求的迭代的上下文。The context that handles iterations of assembly binding requests.

属性

例外

当前应用程序域不是默认应用程序域。The current application domain is not the default application domain.

contextnullcontext is null.

注解

根据设计器的需要,可以随时将上下文替换为新的绑定上下文。The context can be replaced with a new binding context at any time, as required by the needs of the designer.

WindowsRuntimeDesignerContext 仅在默认应用程序域中受支持。WindowsRuntimeDesignerContext is supported only in the default application domain.

适用于