System.LocalDataStoreMgr.DeleteLocalDataStore C# (CSharp) Method

DeleteLocalDataStore() public method

public DeleteLocalDataStore ( LocalDataStore store ) : void
store LocalDataStore
return void
    	public void DeleteLocalDataStore(LocalDataStore store)
		{
            bool tookLock = false;
            RuntimeHelpers.PrepareConstrainedRegions();
            try {
                Monitor.ReliableEnter(this, ref tookLock);
        		// Remove the store to the array list and return it.
        		m_ManagedLocalDataStores.Remove(store);
        	}
            finally {
                if (tookLock)
                    Monitor.Exit(this);
            }
		}

Usage Example

 /*=========================================================================
 ** Delete this store from its manager
 ** =========================================================================*/
 internal void Dispose()
 {
     m_Manager.DeleteLocalDataStore(this);
 }