protected override void BeginProcessing() { base.BeginProcessing(); if (!(this.specifiedPath ^ this.isLiteralPath)) { InvalidOperationException exception = new InvalidOperationException(CsvCommandStrings.CannotSpecifyPathAndLiteralPath); ErrorRecord errorRecord = new ErrorRecord(exception, "CannotSpecifyPathAndLiteralPath", ErrorCategory.InvalidData, null); base.ThrowTerminatingError(errorRecord); } this.shouldProcess = base.ShouldProcess(this.Path); if (this.shouldProcess) { this.CreateFileStream(); this.helper = new ExportCsvHelper(this, base.Delimiter); } }
protected override void BeginProcessing() { base.BeginProcessing(); if (!(this.specifiedPath ^ this.isLiteralPath)) { InvalidOperationException exception = new InvalidOperationException(CsvCommandStrings.CannotSpecifyPathAndLiteralPath); ErrorRecord errorRecord = new ErrorRecord(exception, "CannotSpecifyPathAndLiteralPath", ErrorCategory.InvalidData, null); base.ThrowTerminatingError(errorRecord); } this.shouldProcess = base.ShouldProcess(this.Path); if (this.shouldProcess) { this.CreateFileStream(); this.helper = new ExportCsvHelper(this, base.Delimiter); } }
BeginProcessing() { base.BeginProcessing(); _helper = new ExportCsvHelper(this, base.Delimiter); }
/// <summary> /// BeginProcessing override /// </summary> protected override void BeginProcessing() { base.BeginProcessing(); // Validate that they don't provide both Path and LiteralPath, but have provided at least one. if (!(_specifiedPath ^ _isLiteralPath)) { InvalidOperationException exception = new InvalidOperationException(CsvCommandStrings.CannotSpecifyPathAndLiteralPath); ErrorRecord errorRecord = new ErrorRecord(exception, "CannotSpecifyPathAndLiteralPath", ErrorCategory.InvalidData, null); this.ThrowTerminatingError(errorRecord); } _shouldProcess = ShouldProcess(Path); if (!_shouldProcess) return; CreateFileStream(); _helper = new ExportCsvHelper(this, base.Delimiter); }
protected override void BeginProcessing() { base.BeginProcessing(); this.helper = new ExportCsvHelper(this, base.Delimiter); }
protected override void BeginProcessing() { base.BeginProcessing(); this.helper = new ExportCsvHelper(this, base.Delimiter); }