BeginBrowse() public method

Begins an asynchronous invocation of the Browse service.
public BeginBrowse ( RequestHeader requestHeader, ViewDescription view, NodeId nodeToBrowse, uint maxResultsToReturn, BrowseDirection browseDirection, NodeId referenceTypeId, bool includeSubtypes, uint nodeClassMask, AsyncCallback callback, object asyncState ) : IAsyncResult
requestHeader RequestHeader The request header.
view ViewDescription The view to browse.
nodeToBrowse NodeId The node to browse.
maxResultsToReturn uint The maximum number of returned values..
browseDirection BrowseDirection The browse direction.
referenceTypeId NodeId The reference type id.
includeSubtypes bool If set to true the subtypes of the ReferenceType will be included in the browse.
nodeClassMask uint The node class mask.
callback AsyncCallback The callback.
asyncState object
return IAsyncResult
 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;
     },