ReportingService2010.GetItemType(String) 메서드

정의

항목이 있는 경우 보고서 서버 데이터베이스 또는 SharePoint 라이브러리에서 항목의 유형을 검색합니다.

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

매개 변수

ItemPath
String

파일 이름과 SharePoint 모드에서는 확장명을 포함하는 항목의 정규화된 URL입니다.

반환

항목 유형을 나타내는 String 값입니다.

특성

설명

다음 표에서는 이 작업에 대한 헤더 및 사용 권한 정보를 보여 줍니다.

SOAP 헤더 사용 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
기본 모드 필수 권한 항목 유형에 따라 다릅니다.

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

Model: ReadProperties
SharePoint 모드 필수 권한 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

메서드를 GetItemType 사용하여 보고서 서버 데이터베이스 또는 SharePoint 라이브러리의 항목 유형을 확인합니다. 항목 형식 목록의 경우 메서드를 ListItemTypes 사용합니다.

적용 대상