Little Registry Cleaner/Common Tools/TaskScheduler/TaskFolderCollection.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
namespace Common_Tools.TaskScheduler
{
/// <summary>
/// Provides information and control for a collection of folders that contain tasks.
/// </summary>
public sealed class TaskFolderCollection : IEnumerable<TaskFolder>
{
private TaskFolder parent;
private TaskScheduler.V2Interop.ITaskFolderCollection v2FolderList = null;
private TaskFolder[] v1FolderList = null;
internal TaskFolderCollection()
{
v1FolderList = new TaskFolder[0];
}
internal TaskFolderCollection(TaskFolder v1Folder)
{
parent = v1Folder;
v1FolderList = new TaskFolder[] { v1Folder };
}
internal TaskFolderCollection(TaskFolder folder, TaskScheduler.V2Interop.ITaskFolderCollection iCollection)
{
parent = folder;
v2FolderList = iCollection;
}
/// <summary>
/// Releases all resources used by this class.
/// </summary>
public void Dispose()
{
if (v1FolderList != null && v1FolderList.Length > 0)
{
v1FolderList[0].Dispose();
v1FolderList[0] = null;
}
if (v2FolderList != null)
System.Runtime.InteropServices.Marshal.ReleaseComObject(v2FolderList);
}
/*
/// <summary>
/// Returns the index of the TaskFolder within the collection.
/// </summary>
/// <param name="item">TaskFolder to find.</param>
/// <returns>Index of the TaskFolder; -1 if not found.</returns>
public int IndexOf(TaskFolder item)
{
return IndexOf(item.Path);
}
/// <summary>
/// Returns the index of the TaskFolder within the collection.
/// </summary>
/// <param name="path">Path to find.</param>
后面还有 149 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。