InvalidDataSourceReference 클래스

Represents a state in which a data source reference is no longer valid.

상속 계층

System.Object
  ReportService2005.DataSourceDefinitionOrReference
    ReportService2005.InvalidDataSourceReference

네임스페이스:  ReportService2005
어셈블리:  ReportService2005(ReportService2005.dll)

구문

‘선언
Public Class InvalidDataSourceReference _
    Inherits DataSourceDefinitionOrReference
‘사용 방법
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

InvalidDataSourceReference 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 InvalidDataSourceReference Initializes a new instance of the InvalidDataSourceReference class.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 Finalize (Object에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
보호된 메서드 MemberwiseClone (Object에서 상속됨)
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

주의

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...
    }
}

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

ReportService2005 네임스페이스