ServiceRpcDescriptor.WithJoinableTaskFactory(JoinableTaskFactory) 方法

定义

返回一个 实例,该实例 ServiceRpcDescriptor 与此类似,但 JoinableTaskFactory 属性设置为指定值。

public Microsoft.ServiceHub.Framework.ServiceRpcDescriptor WithJoinableTaskFactory (Microsoft.VisualStudio.Threading.JoinableTaskFactory? joinableTaskFactory);
member this.WithJoinableTaskFactory : Microsoft.VisualStudio.Threading.JoinableTaskFactory -> Microsoft.ServiceHub.Framework.ServiceRpcDescriptor
Public Function WithJoinableTaskFactory (joinableTaskFactory As JoinableTaskFactory) As ServiceRpcDescriptor

参数

joinableTaskFactory
JoinableTaskFactory

修改后的属性的值。

返回

此实例的克隆,属性已更改。 如果该属性已匹配,则为此同一实例。

适用于