Microsoft.Azure.Commands.Batch.Models.BatchClient.DownloadNodeFile C# (CSharp) 메소드

DownloadNodeFile() 공개 메소드

Downloads a node file using the specified options.
public DownloadNodeFile ( Microsoft.Azure.Commands.Batch.Models.DownloadNodeFileOptions options ) : void
options Microsoft.Azure.Commands.Batch.Models.DownloadNodeFileOptions The download options.
리턴 void
        public void DownloadNodeFile(DownloadNodeFileOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            NodeFile nodeFile = null;
            switch (options.NodeFileType)
            {
                case PSNodeFileType.Task:
                    {
                        JobOperations jobOperations = options.Context.BatchOMClient.JobOperations;
                        nodeFile = jobOperations.GetNodeFile(options.JobId, options.TaskId, options.NodeFileName, options.AdditionalBehaviors);
                        break;
                    }
                case PSNodeFileType.ComputeNode:
                    {
                        PoolOperations poolOperations = options.Context.BatchOMClient.PoolOperations;
                        nodeFile = poolOperations.GetNodeFile(options.PoolId, options.ComputeNodeId, options.NodeFileName, options.AdditionalBehaviors);
                        break;
                    }
                case PSNodeFileType.PSNodeFileInstance:
                    {
                        nodeFile = options.NodeFile.omObject;
                        break;
                    }
                default:
                    {
                        throw new ArgumentException(Resources.NoNodeFile);
                    }
            }

            DownloadNodeFileByInstance(nodeFile, options.DestinationPath, options.Stream, options.AdditionalBehaviors);
        }
BatchClient