IConnectionInitiator.ConnectAsync(Uri, TimeSpan) 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.
public:
System::Threading::Tasks::ValueTask<System::ServiceModel::Channels::IConnection ^> ConnectAsync(Uri ^ uri, TimeSpan timeout);
public:
System::Threading::Tasks::Task<System::ServiceModel::Channels::IConnection ^> ^ ConnectAsync(Uri ^ uri, TimeSpan timeout);
public System.Threading.Tasks.ValueTask<System.ServiceModel.Channels.IConnection> ConnectAsync (Uri uri, TimeSpan timeout);
public System.Threading.Tasks.Task<System.ServiceModel.Channels.IConnection> ConnectAsync (Uri uri, TimeSpan timeout);
abstract member ConnectAsync : Uri * TimeSpan -> System.Threading.Tasks.ValueTask<System.ServiceModel.Channels.IConnection>
abstract member ConnectAsync : Uri * TimeSpan -> System.Threading.Tasks.Task<System.ServiceModel.Channels.IConnection>
Public Function ConnectAsync (uri As Uri, timeout As TimeSpan) As ValueTask(Of IConnection)
Public Function ConnectAsync (uri As Uri, timeout As TimeSpan) As Task(Of IConnection)
Parameters
- uri
- Uri
- timeout
- TimeSpan
Returns
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈