Share via


DataSource Class

Represents a data source.

Inheritance Hierarchy

System.Object
  Microsoft.ReportingServices.RdlObjectModel.ReportObjectBase
    Microsoft.ReportingServices.RdlObjectModel.ReportObject
      Microsoft.ReportingServices.RdlObjectModel.DataSource

Namespace:  Microsoft.ReportingServices.RdlObjectModel
Assembly:  Microsoft.ReportingServices.Designer.Controls (in Microsoft.ReportingServices.Designer.Controls.dll)

Syntax

'Declaration
Public Class DataSource _
    Inherits ReportObject _
    Implements INamedObject
'Usage
Dim instance As DataSource
public class DataSource : ReportObject, INamedObject
public ref class DataSource : public ReportObject, 
    INamedObject
type DataSource =  
    class 
        inherit ReportObject 
        interface INamedObject 
    end
public class DataSource extends ReportObject implements INamedObject

The DataSource type exposes the following members.

Constructors

  Name Description
Public method DataSource Initializes a new instance of the DataSource class.

Top

Properties

  Name Description
Public property ComponentMetadata Gets or sets the component metadata. (Inherited from ReportObject.)
Public property ConnectionProperties Gets or sets the connection properties.
Public property Credentials Infrastructure. Gets or sets the data source credentials.
Public property DataSourceID Gets or sets the data source ID.
Public property DataSourceReference Gets or sets the path to a shared data source.
Public property DesignTimeCredentials Infrastructure. Gets or sets the credentials at design time.
Public property ImpersonateUser Infrastructure. Gets or sets a value that indicates whether to impersonate the user.
Public property IsModel Infrastructure. Gets or sets a value that indicates whether the data source is a model.
Public property IsModified Infrastructure. Gets or sets a value that indicates whether the data source is modified.
Public property IsModifiedSincePreview Infrastructure. Gets or sets a value that indicates whether the data source is modified since last preview.
Public property IsReference Infrastructure. Gets or sets a value that indicates whether the data source is a reference.
Public property IsShared Infrastructure. Gets or sets a value that indicates whether the data source is shared.
Public property Name Gets or sets the data source name.
Public property Parent The parent of this report object. (Inherited from ReportObjectBase.)
Public property RunTimeCredentials Infrastructure. Gets or sets the credentials at runtime time.
Public property SecurityType Gets or sets the authentication method of the data source.
Public property ShouldSaveCredentials Infrastructure. Gets or sets a value that indicates whether data source should save credentials.
Public property Site Infrastructure. Gets or sets the site associated with the ReportObject object. (Inherited from ReportObject.)
Public property Transaction Gets or sets the value that indicates whether the datasets that use this data source run in a single transaction.
Public property WindowsCredentials Infrastructure. Gets or sets a value that indicates whether to use windows credentials.

Top

Methods

  Name Description
Public method DeepClone Infrastructure. Returns a deep clone of this data source. (Overrides ReportObject.DeepClone().)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetContainingDataScopes Infrastructure. Returns the list of report object that contains data scopes. (Inherited from ReportObject.)
Protected method GetDataScopesForDefaultImpl Infrastructure. Returns the data scopes for default implementation. (Inherited from ReportObject.)
Protected method GetDependenciesCore Infrastructure. Returns the dependencies core for the ReportObject object. (Inherited from ReportObject.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Initialize Initializes the current DataSource instance. (Overrides ReportObject.Initialize().)
Protected method InitializeForDesigner Infrastructure. Initializes the report object for designer. (Inherited from ReportObject.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnChildPropertyChanged Infrastructure. Raises an event when the property of the child was changed. (Inherited from ReportObject.)
Protected method OnPropertyChanged Infrastructure. Raises an event when the property was changed. (Inherited from ReportObject.)
Protected method RdlSemanticEqualsCore Infrastructure. Indicates whether the RDL semantic is equal to the core objects. (Overrides ReportObject.RdlSemanticEqualsCore(ReportObject, ICollection<ReportObject>).)
Protected method SavePropertyValue<T> Infrastructure. Saves the property value of the report object. (Inherited from ReportObject.)
Public method SetCachedCredentials Infrastructure. Sets the credentials from the cached.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IDisposable.Dispose Infrastructure. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from ReportObject.)
Explicit interface implemetationPrivate event IComponent.Disposed Infrastructure. Occurs when the ReportObject object is disposed. (Inherited from ReportObject.)

Top

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.

See Also

Reference

Microsoft.ReportingServices.RdlObjectModel Namespace