ReportingService2010.DisableDataSource(String) ReportingService2010.DisableDataSource(String) ReportingService2010.DisableDataSource(String) Method

定义

禁用已启用的数据源。 Disables a data source that is enabled.

public:
 void DisableDataSource(System::String ^ DataSource);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DisableDataSource", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public void DisableDataSource (string DataSource);
Public Sub DisableDataSource (DataSource As String)
参数
DataSource
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

如果数据源处于禁用状态,引用该数据源的报表不会运行。Reports that reference the data source do not run if the data source is disabled.

如果.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.

适用于