public IEnumerable<PSNodeFile> ListNodeFiles(ListNodeFileOptions options)
{
if (options == null)
{
throw new ArgumentNullException("options");
}
switch (options.NodeFileType)
{
case PSNodeFileType.Task:
{
return ListNodeFilesByTask(options);
}
case PSNodeFileType.ComputeNode:
{
return ListNodeFilesByComputeNode(options);
}
default:
{
throw new ArgumentException(Resources.NoNodeFileParent);
}
}
}