Classe InvalidDataSourceReference
Represents a state in which a data source reference is no longer valid.
Hiérarchie d'héritage
System.Object
ReportService2005.DataSourceDefinitionOrReference
ReportService2005.InvalidDataSourceReference
Espace de noms : ReportService2005
Assembly : ReportService2005 (en ReportService2005.dll)
Syntaxe
'Déclaration
Public Class InvalidDataSourceReference _
Inherits DataSourceDefinitionOrReference
'Utilisation
Dim instance As InvalidDataSourceReference
public class InvalidDataSourceReference : DataSourceDefinitionOrReference
public ref class InvalidDataSourceReference : public DataSourceDefinitionOrReference
type InvalidDataSourceReference =
class
inherit DataSourceDefinitionOrReference
end
public class InvalidDataSourceReference extends DataSourceDefinitionOrReference
Le type InvalidDataSourceReference expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
![]() |
InvalidDataSourceReference | Initializes a new instance of the InvalidDataSourceReference class. |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
![]() |
Equals | (hérité de Object.) |
![]() |
Finalize | (hérité de Object.) |
![]() |
GetHashCode | (hérité de Object.) |
![]() |
GetType | (hérité de Object.) |
![]() |
MemberwiseClone | (hérité de Object.) |
![]() |
ToString | (hérité de Object.) |
Haut de la page
Notes
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...
}
}
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.