Skip to content
DocsTry Aspire
DocsTry

PowerShellScriptResourceBuilderExtensions Methods

ClassMethods1 member
PowerShell script resource builder extensions.
WithArgs(IResourceBuilder<PowerShellScriptResource>, object[])Section titled WithArgs(IResourceBuilder<PowerShellScriptResource>, object[])extensionIResourceBuilder<PowerShellScriptResource>
Provide arguments to the PowerShell script.
public static class PowerShellScriptResourceBuilderExtensions
{
public static IResourceBuilder<PowerShellScriptResource> WithArgs(
this IResourceBuilder<PowerShellScriptResource> builder,
params object[] args)
{
// ...
}
}
builderIResourceBuilder<PowerShellScriptResource>
argsobject[]
This overload is not available in polyglot app hosts. Use the string-based overload instead.