ListInstalledSharePointVersions Method (WMI)

新建日期: 2006 年 12 月 12 日

Returns a set of tokens that represent the versions of Windows SharePoint Services that are installed on the same computer as the report server.

Syntax

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

Parameters

  • VersionTokens[]
    [out] An array that contains the tokens that represent the version of a SharePoint product or technology that is compatible with the installed report server.
  • Length
    [out] The length of the version tokens array.
  • HRESULT
    [out] Value indicating whether the call succeeded or failed.

Return Value

Returns an HRESULT indicating success or failure of the method call. A value of 0 indicates that the method call was successful. A non-zero value indicates that an error has occurred.

备注

Each token that is returned represents a version of Windows SharePoint Services that is compatible with the currently installed report server. If a particular version of SharePoint is backwards compatible with previous SharePoint versions, tokens for each compatible SharePoint version are returned.

The following is a table of the SharePoint tokens that are returned.

Version Tokens Description

WSS_V2_Compatible

A Windows SharePoint Services installation is installed that is compatible with Windows SharePoint Services 2.0.

WSS_V3_Compatible

A Windows SharePoint Services installation is installed that is compatible with Windows SharePoint Services 3.0.

Requirements

Namespace:root\Microsoft\SqlServer\ReportServer\v9\Admin

Platform:

请参阅

参考

MSReportServer_ConfigurationSetting Members
MSReportServer_ConfigurationSettingForSharePoint Members

帮助和信息

获取 SQL Server 2005 帮助