DataSource DataSource DataSource DataSource Class

定義

表示 BaseProperty 的位置和群組。Represents the location and grouping for a BaseProperty.

public ref class DataSource sealed : System::ComponentModel::ISupportInitialize
public sealed class DataSource : System.ComponentModel.ISupportInitialize
type DataSource = class
    interface ISupportInitialize
Public NotInheritable Class DataSource
Implements ISupportInitialize
繼承
DataSourceDataSourceDataSourceDataSource
實作

備註

如果您手動具現化此類別BeginInit , 請在設定物件的第一個屬性和EndInit設定最後一個屬性之後呼叫。If you manually instantiate this class, call BeginInit before you set the first property of the object and EndInit after you set the last property.

建構函式

DataSource() DataSource() DataSource() DataSource()

無參數建構函式。Parameterless constructor. 正確 XAML 還原序列化的必要項。Required for correct XAML deserialization.

屬性

HasConfigurationCondition HasConfigurationCondition HasConfigurationCondition HasConfigurationCondition

取得或設定旗標,這個旗標決定屬性是否與組態相依 (以其持續性位置是否具有與屬性定義連接的組態條件來表示)。Gets or sets a flag that determines whether a property is configuration-dependent, as indicated by the presence of a configuration condition that is attached to the property definition at its persistence location.

ItemType ItemType ItemType ItemType

取得或設定資料來源的項目類型。Gets or sets the item type of the data source.

Label Label Label Label

取得或設定屬性/項目定義中繼資料所屬 MSBuild 屬性群組/項目定義群組的標籤。Gets or sets the label of the MSBuild property group/item definition group to which a property/item definition metadata belongs.

MSBuildTarget MSBuildTarget MSBuildTarget MSBuildTarget

取得或設定 MSBuild 目標清單 (以分號分隔),這些目標必須先執行,然後才能讀取這個資料來源的唯讀屬性或項目。Gets or sets the semicolon-delimited list of MSBuild targets that must be executed before reading the read-only properties or items of this data source.

PersistedName PersistedName PersistedName PersistedName

取得或設定用來讀取/寫入這個屬性值的實際 MSBuild 屬性名稱。Gets or sets the actual MSBuild property name used to read/write the value of this property.

Persistence Persistence Persistence Persistence

取得或設定這個資料來源的儲存位置。Gets or sets the storage location for this data source.

SourceOfDefaultValue SourceOfDefaultValue SourceOfDefaultValue SourceOfDefaultValue

取得或設定 DefaultValueSourceLocation 的值,表示此資料來源預設值的位置。Gets or sets the value of a DefaultValueSourceLocation which indicates the location of the default value for this data source.

SourceType SourceType SourceType SourceType

取得或設定來源的資料類型,這個資料類型控管資料在建置期間的處理方式。Gets or sets the data type of the source, which governs how the data is treated during build.

方法

BeginInit() BeginInit() BeginInit() BeginInit()

請參閱 BeginInit()See BeginInit().

EndInit() EndInit() EndInit() EndInit()

請參閱 EndInit()See EndInit().

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於