HoloToolkit.Sharing.Session.Leave C# (CSharp) Method

Leave() public method

public Leave ( ) : void
return void
  public virtual void Leave() {
    SharingClientPINVOKE.Session_Leave(swigCPtr);
  }

Usage Example

 /// <summary>
 ///  Leave the current session.
 /// </summary>
 public void LeaveCurrentSession()
 {
     using (Session currentSession = GetCurrentSession())
     {
         if (currentSession != null)
         {
             currentSession.Leave();
         }
     }
 }