Skip to content

Instantly share code, notes, and snippets.

@CN-CODEGOD
Created September 19, 2024 04:39
Show Gist options
  • Save CN-CODEGOD/2b405bc52c0b250da5d244415ea79d9e to your computer and use it in GitHub Desktop.
Save CN-CODEGOD/2b405bc52c0b250da5d244415ea79d9e to your computer and use it in GitHub Desktop.
pipe parameter
[Parameter(
Position = 0,
ValueFromPipeline = true,
ValueFromPipelineByPropertyName = true)]
[ValidateNotNullOrEmpty]
public string[] Name
{
get { return this.processNames; }
set { this.processNames = value; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment