ReportingService2010.EnableDataSource(String) ReportingService2010.EnableDataSource(String) ReportingService2010.EnableDataSource(String) Method


启用已禁用的数据源。 Enables a data source that is disabled.

 void EnableDataSource(System::String ^ DataSource);
[System.Web.Services.Protocols.SoapDocumentMethod("", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="", ResponseNamespace="", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public void EnableDataSource (string DataSource);
Public Sub EnableDataSource (DataSource As String)
String String String

数据源的完全限定 URL,其中包括文件名(在 SharePoint 模式下,还有扩展名 (.rsds))。 The fully qualified URL of the data source including the file name and, in SharePoint mode, the extension (.rsds).


下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头使用情况SOAP Header Usage (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
纯模式所需的权限Native Mode Required Permissions UpdateContent
SharePoint 模式所需的权限SharePoint Mode Required Permissions EditListItems

如果.rsds 文件扩展名排除数据源名称,从rsFileExtensionRequired将返回错误。If the .rsds file name extension is excluded from the data source name, an rsFileExtensionRequired error will be returned. 如果给定.odc 文件扩展名,则rsNotSupported返回错误。If an .odc file name extension is given, an rsNotSupported error is returned.

长度DataSource参数不能超过 260 个字符; 否则,将 SOAP 异常引发,错误代码rsItemLengthExceededThe length of the DataSource parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

DataSource参数不能为 null 或为空或包含下列保留的字符: : ? ; @ & = + $ , \ * > < | . "The DataSource parameter cannot be null or empty or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". 你可以使用正斜杠字符 (/) 分隔的文件夹的完整路径名称中的项,但不能在文件夹名称末尾使用它。You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.