DataSource 类

Represents a data source.

继承层次结构

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

命名空间:  Microsoft.ReportingServices.RdlObjectModel
程序集:  Microsoft.ReportingServices.Designer.Controls(在 Microsoft.ReportingServices.Designer.Controls.dll 中)

语法

声明
Public Class DataSource _
    Inherits ReportObject _
    Implements INamedObject
用法
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

DataSource 类型公开以下成员。

构造函数

  名称 说明
公共方法 DataSource Initializes a new instance of the DataSource class.

页首

属性

  名称 说明
公共属性 ComponentMetadata Gets or sets the component metadata. (从 ReportObject 继承。)
公共属性 ConnectionProperties Gets or sets the connection properties.
公共属性 Credentials 基础结构。Gets or sets the data source credentials.
公共属性 DataSourceID Gets or sets the data source ID.
公共属性 DataSourceReference Gets or sets the path to a shared data source.
公共属性 DesignTimeCredentials 基础结构。Gets or sets the credentials at design time.
公共属性 ImpersonateUser 基础结构。Gets or sets a value that indicates whether to impersonate the user.
公共属性 IsModel 基础结构。Gets or sets a value that indicates whether the data source is a model.
公共属性 IsModified 基础结构。Gets or sets a value that indicates whether the data source is modified.
公共属性 IsModifiedSincePreview 基础结构。Gets or sets a value that indicates whether the data source is modified since last preview.
公共属性 IsReference 基础结构。Gets or sets a value that indicates whether the data source is a reference.
公共属性 IsShared 基础结构。Gets or sets a value that indicates whether the data source is shared.
公共属性 Name Gets or sets the data source name.
公共属性 Parent The parent of this report object. (从 ReportObjectBase 继承。)
公共属性 RunTimeCredentials 基础结构。Gets or sets the credentials at runtime time.
公共属性 SecurityType Gets or sets the authentication method of the data source.
公共属性 ShouldSaveCredentials 基础结构。Gets or sets a value that indicates whether data source should save credentials.
公共属性 Site 基础结构。Gets or sets the site associated with the ReportObject object. (从 ReportObject 继承。)
公共属性 Transaction Gets or sets the value that indicates whether the datasets that use this data source run in a single transaction.
公共属性 WindowsCredentials 基础结构。Gets or sets a value that indicates whether to use windows credentials.

页首

方法

  名称 说明
公共方法 DeepClone 基础结构。Returns a deep clone of this data source. (覆盖 ReportObject.DeepClone()。)
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetContainingDataScopes 基础结构。Returns the list of report object that contains data scopes. (从 ReportObject 继承。)
受保护方法 GetDataScopesForDefaultImpl 基础结构。Returns the data scopes for default implementation. (从 ReportObject 继承。)
受保护方法 GetDependenciesCore 基础结构。Returns the dependencies core for the ReportObject object. (从 ReportObject 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 Initialize Initializes the current DataSource instance. (覆盖 ReportObject.Initialize()。)
受保护方法 InitializeForDesigner 基础结构。Initializes the report object for designer. (从 ReportObject 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
受保护方法 OnChildPropertyChanged 基础结构。Raises an event when the property of the child was changed. (从 ReportObject 继承。)
受保护方法 OnPropertyChanged 基础结构。Raises an event when the property was changed. (从 ReportObject 继承。)
受保护方法 RdlSemanticEqualsCore 基础结构。Indicates whether the RDL semantic is equal to the core objects. (覆盖 ReportObject.RdlSemanticEqualsCore(ReportObject, ICollection<ReportObject>)。)
受保护方法 SavePropertyValue<T> 基础结构。Saves the property value of the report object. (从 ReportObject 继承。)
公共方法 SetCachedCredentials 基础结构。Sets the credentials from the cached.
公共方法 ToString (从 Object 继承。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 IDisposable.Dispose 基础结构。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (从 ReportObject 继承。)
显式接口实现私有事件 IComponent.Disposed 基础结构。Occurs when the ReportObject object is disposed. (从 ReportObject 继承。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.ReportingServices.RdlObjectModel 命名空间