Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Begins an asynchronous operation to open a communication object.
BeginOpen(AsyncCallback, Object) |
Begins an asynchronous operation to open a communication object. |
BeginOpen(TimeSpan, AsyncCallback, Object) |
Begins an asynchronous operation to open a communication object within a specified interval of time. |
Begins an asynchronous operation to open a communication object.
public:
virtual IAsyncResult ^ BeginOpen(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginOpen(AsyncCallback callback, object state);
abstract member BeginOpen : AsyncCallback * obj -> IAsyncResult
override this.BeginOpen : AsyncCallback * obj -> IAsyncResult
Public Function BeginOpen (callback As AsyncCallback, state As Object) As IAsyncResult
The AsyncCallback delegate that receives notification of the completion of the asynchronous open operation.
An object, specified by the application, that contains state information associated with the asynchronous open operation.
The IAsyncResult that references the asynchronous open operation.
The communication object is in a Faulted state and cannot be modified.
The default interval of time that was allotted for the operation was exceeded before the operation was completed.
The OnBeginOpen(TimeSpan, AsyncCallback, Object) method calls OnOpening and OnBeginOpen(TimeSpan, AsyncCallback, Object) if the communication object is initially in the Created state.
To insert processing after a communication object transitions to a closing state due to the invocation of a synchronous Open operation, use the Open method.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 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 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
Begins an asynchronous operation to open a communication object within a specified interval of time.
public:
virtual IAsyncResult ^ BeginOpen(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state);
abstract member BeginOpen : TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.BeginOpen : TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginOpen (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult
The TimeSpan that specifies how long the send operation has to complete before timing out.
The AsyncCallback delegate that receives notification of the completion of the asynchronous open operation.
An object, specified by the application, that contains state information associated with the asynchronous open operation.
The IAsyncResult that references the asynchronous open operation.
The communication object is in a Faulted state and cannot be modified.
The default interval of time that was allotted for the operation was exceeded before the operation was completed.
The BeginOpen(TimeSpan, AsyncCallback, Object) method calls OnOpening and OnBeginOpen(TimeSpan, AsyncCallback, Object) if the communication object is initially in the Created state.
To insert processing after a communication object transitions to a closing state due to the invocation of a synchronous Open operation, use the Open method.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 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 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Please sign in to use this experience.
Sign in