Langue

ReportingService2010.GetItemType(String) Méthode

Définition

Récupère le type d’élément dans une base de données serveur de rapports ou une bibliothèque SharePoint, si l’élément existe.

public:
 System::String ^ GetItemType(System::String ^ ItemPath);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemType", 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 string GetItemType(string ItemPath);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemType", 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.GetItemType : string -> string
Public Function GetItemType (ItemPath As String) As String

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.

Retours

Une valeur qui représente le type d’objet String .

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 :

- Folder: ReadProperties
- Report: ReadProperties
- Resource: ReadProperties
- DataSource: ReadProperties

Model : ReadProperties
Permissions requises en mode SharePoint <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

Utilisez la GetItemType méthode pour déterminer le type d’élément dans une base de données serveur de rapports ou une bibliothèque bibliothèque SharePoint. Pour une liste de types d’objets, utilisez la ListItemTypes méthode.

S’applique à