ConfigurationSetting 方法 - ListInstalledSharePointVersions

返回一组令牌,表示 Microsoft Windows SharePoint Services、Office SharePoint Server、SharePoint Foundation 2010 或 SharePoint Server 2010 的版本。 这些令牌指示与报表服务器位于同一台计算机上的安装。

语法

Public Sub ListInstalledSharePointVersions(ByRef VersionTokens() _  
    As String, ByRef Length As Int32, ByRef HRESULT As Int32)  
public void ListReportServersInDatabase (out string[] VersionTokens,   
    out Int32 Length, out Int32 HRESULT);  

parameters

VersionTokens[]
[out] 一个包含表示 SharePoint 产品或技术的版本的标记的数组,该版本与安装的报表服务器兼容。

时长
[out] 版本标记数组的长度。

HRESULT
[out] 指示调用是成功还是失败的值。

返回值

返回 HRESULT ,指示方法调用是成功还是失败。 值 0 指示方法调用已成功。 非零值指示发生了错误。

注解

返回的每个标记都表示一个与当前安装的报表服务器兼容的 Windows SharePoint Services 或 SharePoint Foundation 2010 版本。 如果某个 SharePoint 特定版本兼容 SharePoint 的早期版本,则会返回每个 SharePoint 兼容版本的标记。

下表显示了返回的 SharePoint 令牌。

版本标记 描述
WSS_V2_Compatible 安装的 Windows SharePoint Services、 Windows SharePoint Services、 Office SharePoint Server、 SharePoint Foundation 2010或 SharePoint Server 2010 系统与 Windows SharePoint Services 2.0 兼容。
WSS_V3_Compatible 安装的 Windows SharePoint Services、 Windows SharePoint Services、 Office SharePoint Server、 SharePoint Foundation 2010或 SharePoint Server 2010 系统与 Windows SharePoint Services 3.0 兼容。
WSS_V4_Compatible 安装的 SharePoint Foundation 2010 或 SharePoint Server 2010 系统与 Office 14 兼容。

要求

命名空间:root\Microsoft\SqlServer\ReportServer\<InstanceName>\v13\Admin

MSReportServer_ConfigurationSetting 成员