コード例 #1
0
        public TaskSchedulerWrapper()
        {
            mService = new S.TaskScheduler();
            mService.Connect();

            mRootFolder = mService.GetFolder(@"\");
        }
コード例 #2
0
        public void Dispose()
        {
            if (mService != null)
            {
                Marshal.ReleaseComObject(mService);
                mService = null;
            }

            if (mRootFolder != null)
            {
                Marshal.ReleaseComObject(mRootFolder);
                mRootFolder = null;
            }
        }