Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Represents a state in which a data source reference is no longer valid.
Inheritance Hierarchy
System.Object
ReportService2005.DataSourceDefinitionOrReference
ReportService2005.InvalidDataSourceReference
Namespace: ReportService2005
Assembly: ReportService2005 (in ReportService2005.dll)
Syntax
'Declaration
Public Class InvalidDataSourceReference _
Inherits DataSourceDefinitionOrReference
'Usage
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
The InvalidDataSourceReference type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
InvalidDataSourceReference | Initializes a new instance of the InvalidDataSourceReference class. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
ToString | (Inherited from Object.) |
Top
Remarks
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...
}
}
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)