ReportingService2010.GetItemType(String) ReportingService2010.GetItemType(String) ReportingService2010.GetItemType(String) Method

定义

如果该项存在,请检索报表服务器数据库或 SharePoint 库中的项的类型。 Retrieves the type of an item in a report server database or SharePoint library, if the item exists.

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);
Public Function GetItemType (ItemPath As String) As String
参数
ItemPath
String String String

项的完全限定 URL,其中包括文件名(在 SharePoint 模式下,还有扩展名)。 The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.

返回

一个表示项类型的 String 值。 A String value that represents the item type.

注解

下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头使用情况SOAP Header Usage (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
纯模式所需的权限Native Mode Required Permissions 取决于项目类型:Depends on the item type:

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

Model: ReadPropertiesModel: ReadProperties
SharePoint 模式所需的权限SharePoint Mode Required Permissions ViewListItems

使用GetItemType方法来确定报表服务器数据库或 SharePoint 库中的项的类型。Use the GetItemType method to determine the type of an item in a report server database or SharePoint library. 有关项类型的列表,使用ListItemTypes方法。For a list of item types, use the ListItemTypes method.

适用于