Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Represents a state in which a data source reference is no longer valid.
Jerarquía de herencia
System.Object
ReportService2005.DataSourceDefinitionOrReference
ReportService2005.InvalidDataSourceReference
Espacio de nombres: ReportService2005
Ensamblado: ReportService2005 (en ReportService2005.dll)
Sintaxis
'Declaración
Public Class InvalidDataSourceReference _
Inherits DataSourceDefinitionOrReference
'Uso
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
El tipo InvalidDataSourceReference expone los siguientes miembros.
Constructores
| Nombre | Descripción | |
|---|---|---|
![]() |
InvalidDataSourceReference | Initializes a new instance of the InvalidDataSourceReference class. |
Arriba
Métodos
| Nombre | Descripción | |
|---|---|---|
![]() |
Equals | (Se hereda de Object.) |
![]() |
Finalize | (Se hereda de Object.) |
![]() |
GetHashCode | (Se hereda de Object.) |
![]() |
GetType | (Se hereda de Object.) |
![]() |
MemberwiseClone | (Se hereda de Object.) |
![]() |
ToString | (Se hereda de Object.) |
Arriba
Comentarios
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...
}
}
Seguridad para subprocesos
Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.
.gif)
.gif)