DataSource Class

Definition

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
Inheritance
DataSource
Implements

Remarks

Those who manually instantiate this class should remember to call BeginInit() before setting the first property and EndInit() after setting the last property of the object.

Constructors

DataSource()

Default constructor. Needed for proper XAML deserialization.

Properties

HasConfigurationCondition

Indicates if a property is configuration-dependent as indicated by the presence of a configuration condition attached to the property definition at its persistence location.

ItemType

If a BaseProperty is an item definition metadata or item metadata, this field specified the item type of the item definition or the item, respectively. For common properties this field must not be set.

Label

The label of the MSBuild property group/item definition group to which a property/item definition metadata belongs to. Default value is the empty string.

MSBuildTarget

Gets or sets the semicolon-delimited list of MSBuild targets that must be executed before reading the read-only properties or items described by this DataSource.

PersistedName

Gets or sets the actual MSBuild property name used to read/write the value of this property. Applicable only to DataSource objects attached to properties.

Persistence

The storage location for this data source.

PersistenceStyle

The storage style for this data source.

SourceOfDefaultValue

Gets or sets a value indicating where the default value for this property can be found.

SourceType

The data type of the source. Generally one of Item, ItemDefinition, Property, or TargetResults (when MSBuildTarget is non-empty). Among other things this governs how the data is treated during build.

Methods

BeginInit()

See ISupportInitialize.

EndInit()

See ISupportInitialize.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to