ISession.CommitAsync Method  
Definition
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.
Overloads
| CommitAsync() | 
						 Store the session in the data store. This may throw if the data store is unavailable.  | 
        	
| CommitAsync(CancellationToken) | 
						 Store the session in the data store. This may throw if the data store is unavailable.  | 
        	
CommitAsync()
Store the session in the data store. This may throw if the data store is unavailable.
public:
 System::Threading::Tasks::Task ^ CommitAsync();
	public System.Threading.Tasks.Task CommitAsync();
	abstract member CommitAsync : unit -> System.Threading.Tasks.Task
	Public Function CommitAsync () As Task
	Returns
Applies to
CommitAsync(CancellationToken)
- Source:
 - ISession.cs
 
Store the session in the data store. This may throw if the data store is unavailable.
public System.Threading.Tasks.Task CommitAsync(System.Threading.CancellationToken cancellationToken = default);
	abstract member CommitAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
	Public Function CommitAsync (Optional cancellationToken As CancellationToken = Nothing) As Task
	Parameters
- cancellationToken
 - CancellationToken