Прочетете на английски Редактиране

Споделяне чрез


DiscoveryClient.ICommunicationObject.Open Method

Definition

Causes a communication object to transition from the created state into the opened state.

Overloads

ICommunicationObject.Open()

Causes a communication object to transition from the created state into the opened state.

ICommunicationObject.Open(TimeSpan)

Causes a communication object to transition from the created state into the opened state within a specified interval of time.

ICommunicationObject.Open()

Causes a communication object to transition from the created state into the opened state.

C#
void ICommunicationObject.Open();

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the DiscoveryClient instance is cast to an ICommunicationObject interface.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ICommunicationObject.Open(TimeSpan)

Causes a communication object to transition from the created state into the opened state within a specified interval of time.

C#
void ICommunicationObject.Open(TimeSpan timeout);

Parameters

timeout
TimeSpan

The TimeSpan that specifies how long the send operation has to complete before timing out.

Implements

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1