IRemoteWpfUserControl.InitializeAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此方法检索描述控件的数据模板和相应数据上下文的 xaml。
public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.RemoteUI.RemoteWpfUserControlDefinition> InitializeAsync(Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControlClient remoteUserControlClient, System.Threading.CancellationToken cancellationToken);
abstract member InitializeAsync : Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControlClient * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.RemoteUI.RemoteWpfUserControlDefinition>
Public Function InitializeAsync (remoteUserControlClient As IRemoteProxiedUserControlClient, cancellationToken As CancellationToken) As Task(Of RemoteWpfUserControlDefinition)
参数
- remoteUserControlClient
- IRemoteProxiedUserControlClient
将接收控件 datacontext 更改通知的对象。
The class implementing <xref data-throw-if-not-resolved="true" uid="Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControl"></xref> is responsible for disposing of
<code data-dev-comment-type="paramref">remoteUserControlClient</code> when <xref data-throw-if-not-resolved="true" uid="System.IDisposable.Dispose"></xref> is invoked on the
<xref data-throw-if-not-resolved="true" uid="Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControl"></xref> instance.
- cancellationToken
- CancellationToken
异步调用的取消标记。
返回
描述数据模板的 xaml 字符串。