For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invoke-UDEndpoint

SINOPSIS

Invoca un endpoint directamente.

SINTAXIS

Invoke-UDEndpoint -Id <String> [-Session] [-Wait] [<CommonParameters>]

DESCRIPCIÓN

Invoca un endpoint directamente. Por ejemplo, esto se puede utilizar para ejecutar controladores OnClick de botones.

EJEMPLOS

Ejemplo 1

New-UDButton -Text "Click Me" -OnClick {
    Show-UDToast "I was clicked!"
} -Id 'Button'

New-UDButton -Text "Invoke Me" -OnClick {
    Invoke-UDEndpoint -Id 'Button'
}

Haga clic en un botón con otro.

PARÁMETROS

-Id

El ID del endpoint que se debe invocar.

-Session

Si se debe incluir la información de la sesión del usuario al invocar el endpoint.

-Wait

Si se debe esperar a que el endpoint se ejecute antes de continuar.

CommonParameters

Este cmdlet admite los parámetros comunes: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable y -ProgressAction. Para más información, consulte about_CommonParameters.

ENTRADAS

Ninguna

SALIDAS

System.Object

NOTAS

ENLACES RELACIONADOS

Última actualización

¿Te fue útil?