InitializeReportServer Method (WMI MSReportServer_ConfigurationSetting Class)
Initializes the specified report service instance.
Syntax
Public Sub InitializeReportServer(InstallationID as String, _
ClientType as Int32, ByRef HRESULT as Int32)
public void InitializeReportServer (string InstallationID,
sint32 ClientType, out sint32 HRESULT);
Parameters
- InstallationID
A string used to encrypt the encryption key before it is returned.
- ClientType[]
[out] An array containing the encrypted encryption key.
- 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.
备注
When this method is called, the encryption key that accesses the report server database secure information is encrypted using the public key of the report server identified by InstallationID and ClientType[] parameters. The resulting encrypted encryption key is then stored in the report server database.
The specified report server’s public key must have previously been written into the report server database.
The InitializeReportServer method must be called against a report server that already has access to the secure information so that it can decrypt the encryption key.
If the report server’s IsInitializedIsInitialized Property (WMI) property is set to true when the InitializeReportServer method is called, the method returns success without trying to encrypt the encryption key.
Requirements
Namespace:root\Microsoft\SqlServer\ReportServer\v9\Admin
Platform: Windows Server 2003, Datacenter Edition;Windows Server 2003, Enterprise Edition;Windows Server 2003, Standard Edition;Windows Vista;Windows XP Professional Service Pack 2 (SP2) 或 Service Pack 1 (SP1);或者 Windows 2000(所有版本)
请参阅
参考
MSReportServer_ConfigurationSetting Members
MSReportServer_ConfigurationSettingForSharePoint Members