ReportingService2005.DisableDataSource(String) Method
Definition
禁用已启用的数据源。Disables a data source that is enabled.
public:
void DisableDataSource(System::String ^ DataSource);
public void DisableDataSource (string DataSource);
member this.DisableDataSource : string -> unit
Public Sub DisableDataSource (DataSource As String)
Parameters
- DataSource
- String
数据源的完全限定 URL。The fully qualified URL of the data source.
Remarks
下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.
SOAP 标头SOAP Headers | (In) BatchHeaderValue(In) BatchHeaderValue (Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue |
所需的权限Required Permissions | UpdateContent |
如果数据源处于禁用状态,则引用数据源的报表和数据驱动订阅将不会运行。Reports and data-driven subscriptions that refer to the data source do not run if the data source is disabled.
参数的长度 DataSource
不能超过260个字符; 否则,将引发带有错误代码 RSITEMLENGTHEXCEEDED 的 SOAP 异常。The 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.