Langage

ReportingService2010.ListSchedules(String) Méthode

Définition

Retourne une liste de tous les plannings partagés dans la base de données du serveur de rapports ou pour un site SharePoint donné.

public:
 cli::array <ReportService2010::Schedule ^> ^ ListSchedules(System::String ^ SiteUrl);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListSchedules", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public ReportService2010.Schedule[] ListSchedules(string SiteUrl);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListSchedules", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
member this.ListSchedules : string -> ReportService2010.Schedule[]
Public Function ListSchedules (SiteUrl As String) As Schedule()

Paramètres

SiteUrl
String

L’URL entièrement qualifiée pour le site SharePoint.

Réglez ce paramètre sur null (Nothing dans Visual Basic) lors de l’invocation de cette méthode en mode natif.

Retours

Un tableau d’objets Schedule représentant tous les plannings partagés dans la base de données du serveur de rapports ou pour le site donné.

Attributs

Remarques

Le tableau ci-dessous présente les informations sur l’en-tête et les autorisations concernant cette opération.

Utilisation de l’en-tête SOAP (En) TrustedUserHeaderValue

(Dehors) ServerInfoHeaderValue
Mode natif : autorisations requises ReadSchedules (Système)
Permissions requises en mode SharePoint <xref:Microsoft.SharePoint.SPBasePermissions.Open>

Cette méthode lance une rsUnsupportedParameterForModeException exception si une valeur non nulle est spécifiée pour le SiteUrl paramètre en mode natif.

Si la base de données serveur de rapports ou le site SharePoint ne contient aucun planning partagé, un tableau vide Schedule est retourné.

S’applique à