The [ValidateNotNullOrEmpty()] attribute not only verifies that an object is not null, but if it is a collection, it validates that it contains no null entries.
But it is up to my job's ScriptBlock to decide if it wants null entries or not, not Start-ThreadJob.
IMO Start-ThreadJob should not even validate that the -ArgumentList is not null. Start-Job doesn't.
The
[ValidateNotNullOrEmpty()]
attribute not only verifies that an object is not null, but if it is a collection, it validates that it contains no null entries.But it is up to my job's ScriptBlock to decide if it wants null entries or not, not
Start-ThreadJob
.IMO
Start-ThreadJob
should not even validate that the -ArgumentList is not null.Start-Job
doesn't.