EndBrowse() public method

Finishes an asynchronous invocation of the Browse service.
public EndBrowse ( IAsyncResult result, byte &continuationPoint, ReferenceDescriptionCollection &references ) : ResponseHeader
result IAsyncResult The result.
continuationPoint byte The continuation point.
references ReferenceDescriptionCollection The list of node references.
return ResponseHeader
 public static Task <ReferenceDescriptionCollection> BrowseAsync(this Session session, NodeId nodeToBrowse)
 {
     return(Task.Factory.FromAsync(
                (callback, state) =>
                session.BeginBrowse(
                    null,
                    null,
                    nodeToBrowse,
                    0,
                    BrowseDirection.Forward,
                    ReferenceTypeIds.Organizes,
                    false,
                    (uint)NodeClass.Object,
                    callback,
                    state),
                result =>
     {
         session.EndBrowse(result, out var continuationPoint, out var references);
         return references;
     },