InvalidDataSourceReference 類別
Represents a state in which a data source reference is no longer valid.
命名空間: ReportService2005
組件: ReportService2005 (在 ReportService2005.dll 中)
語法
'宣告
<SerializableAttribute> _
Public Class InvalidDataSourceReference _
Inherits DataSourceDefinitionOrReference
'用途
Dim instance As InvalidDataSourceReference
[SerializableAttribute]
public class InvalidDataSourceReference : DataSourceDefinitionOrReference
[SerializableAttribute]
public ref class InvalidDataSourceReference : public DataSourceDefinitionOrReference
[<SerializableAttribute>]
type InvalidDataSourceReference =
class
inherit DataSourceDefinitionOrReference
end
public class InvalidDataSourceReference extends DataSourceDefinitionOrReference
備註
An InvalidDataSourceReference object is used with the Item property as output by GetItemDataSources method.
In most cases, an InvalidDataSourceReference object is returned when a shared data source has been deleted.
To evaluate whether a data source reference is valid, use the is keyword in C# (TypeOf/Is in Visual Basic) to determine the type of object returned by the Item property of the DataSource class, as shown in the following C# code:
DataSource[] dataSource;
dataSource = service.GetReportDataSources( "/MyReport" );
foreach ( DataSource ds in dataSource )
{
if ( ds.Item is InvalidDataSourceReference )
{
// Code to handle a corrupt or missing data source reference goes here...
}
}
繼承階層
System. . :: . .Object
ReportService2005. . :: . .DataSourceDefinitionOrReference
ReportService2005..::..InvalidDataSourceReference
執行緒安全性
這個類型的任何公用static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員都可以是安全執行緒。