ReportingService2010.SetItemDefinition(String, Byte[], Property[]) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit la définition ou le contenu d’un élément spécifié. Cette méthode s’applique aux types d’éléments , Model, Dataset, Component, Resource, et DataSource d’élémentsReport.
public:
cli::array <ReportService2010::Warning ^> ^ SetItemDefinition(System::String ^ ItemPath, cli::array <System::Byte> ^ Definition, cli::array <ReportService2010::Property ^> ^ Properties);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemDefinition", 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("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public ReportService2010.Warning[] SetItemDefinition(string ItemPath, byte[] Definition, ReportService2010.Property[] Properties);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemDefinition", 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("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.SetItemDefinition : string * byte[] * ReportService2010.Property[] -> ReportService2010.Warning[]
Public Function SetItemDefinition (ItemPath As String, Definition As Byte(), Properties As Property()) As Warning()
Paramètres
- ItemPath
- String
L’URL entièrement qualifiée de l’élément incluant le nom du fichier et, en mode SharePoint, l’extension.
- Definition
- Byte[]
La définition de l’article à enregistrer.
- Properties
- Property[]
Un tableau d’objets Property qui définit les propriétés et valeurs à définir pour l’élément.
Retours
Une série d’objets Warning qui décrit les avertissements survenus lors de la validation de la définition ou du contenu de l’élément.
- 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 | Cela dépend du type d’objet : - Report, DataSet: UpdateReportDefinition- Resource, Component: UpdateContent- DataSource: UpdateContent- Model: UpdateContent |
| Permissions requises en mode SharePoint | <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems> |
La longueur du ItemPath paramètre ne peut pas dépasser 260 caractères ; sinon, une exception SOAP est lancée avec le code d’erreur rsItemLengthExceeded.
Le ItemPath paramètre ne peut pas être nul ou vide, ni contenir les caractères réservés suivants : : ? ; @ & = + $ , \ * > < | . ". Vous pouvez utiliser le caractère de barre oblique avant (/) pour séparer les éléments dans le nom complet du chemin, mais vous ne pouvez pas l’utiliser à la fin du nom du dossier.
Si ItemType est Report, alors les données XML sont définies par le langage de définition de rapport. Si ItemType est Model, alors les données XML sont définies par le Langage de Définition du Modèle Sémantique.
Modifier la définition ou le contenu d’un élément modifie les ModifiedBy, ModifiedDate, et Size les propriétés de l’élément. La Description propriété n’est pas affectée. Les paramètres d’exécution et les instantanés existants restent inchangés pour l’objet.