ReportingService2006.EnableDataSource(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
启用已禁用的数据源。
public:
void EnableDataSource(System::String ^ DataSource);
public void EnableDataSource(string DataSource);
member this.EnableDataSource : string -> unit
Public Sub EnableDataSource (DataSource As String)
参数
- DataSource
- String
数据源的完整限定URL,包括文件名和.rsds文件扩展名。
注解
下表显示了该操作的头部和权限信息。
| SOAP 头部 | (在) TrustedUserHeaderValue (出局) ServerInfoHeaderValue |
| 所需的权限 | <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems> |
如果将.rsds文件扩展名排除在数据源名称中, rsFileExtensionRequired 将返回错误。 如果给出了 .odc 文件扩展名,会 rsNotSupported 返回错误。
参数长度 DataSource 不得超过260个字符;否则,会抛出带有错误代码 rsItemLengthExceed的SOAP异常。
DataSource参数不能为空或空,也不能包含以下保留字符: : ? ; @ & = + $ , \ * > < | . "。 你可以用斜杠字符(/)分隔文件夹完整路径名称中的项目,但不能在文件夹名称末尾使用。