ReportingService2006.GetItemType(String) 方法

定义

检索 SharePoint 库中某项的类型(如果该项存在)。

public:
 ReportService2006::ItemTypeEnum GetItemType(System::String ^ Item);
public ReportService2006.ItemTypeEnum GetItemType (string Item);
member this.GetItemType : string -> ReportService2006.ItemTypeEnum
Public Function GetItemType (Item As String) As ItemTypeEnum

参数

Item
String

项的完全限定 URL,其中包括文件名和扩展名。

返回

一个 ItemTypeEnum 值。

注解

下表显示了有关此操作的标头和权限信息。

SOAP 标头 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
所需的权限 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

GetItemType使用 方法可确定 SharePoint 库中项的类型。

适用于