共用方式為


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 命名空間