This documentation is archived and is not being maintained.

DataSource Class

Represents the location and grouping for a BaseProperty.

System::Object
  Microsoft.Build.Framework.XamlTypes::DataSource

Namespace:  Microsoft.Build.Framework.XamlTypes
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

public ref class DataSource sealed : ISupportInitialize

The DataSource type exposes the following members.

  NameDescription
Public methodDataSourceDefault constructor. Required for correct XAML deserialization.
Top

  NameDescription
Public propertyHasConfigurationConditionGets 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.
Public propertyItemTypeGets or sets the item type of the data source.
Public propertyLabelGets or sets the label of the MSBuild property group/item definition group to which a property/item definition metadata belongs.
Public propertyPersistedNameGets or sets the actual MSBuild property name used to read/write the value of this property.
Public propertyPersistenceGets or sets the storage location for this data source.
Public propertySourceTypeGets or sets the data type of the source, which governs how the data is treated during build.
Top

  NameDescription
Public methodBeginInitSee BeginInit.
Public methodEndInitSee EndInit.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: