DataSourceAttribute 类

定义

上的 ITableControlEventProcessorProvider 属性,用于将创建的 ITableControlEventProcessor 限制为与此属性匹配的ITableDataSourceIdentifier条目上的事件。

public ref class DataSourceAttribute sealed : Microsoft::VisualStudio::Utilities::MultipleBaseMetadataAttribute
public ref class DataSourceAttribute sealed : Attribute
public ref class DataSourceAttribute sealed : Microsoft::VisualStudio::Utilities::MultipleBaseMetadataAttribute
public sealed class DataSourceAttribute : Microsoft.VisualStudio.Utilities.MultipleBaseMetadataAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property, AllowMultiple=true)]
[System.ComponentModel.Composition.MetadataAttribute]
public sealed class DataSourceAttribute : Attribute
type DataSourceAttribute = class
    inherit MultipleBaseMetadataAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property, AllowMultiple=true)>]
[<System.ComponentModel.Composition.MetadataAttribute>]
type DataSourceAttribute = class
    inherit Attribute
Public NotInheritable Class DataSourceAttribute
Inherits MultipleBaseMetadataAttribute
Public NotInheritable Class DataSourceAttribute
Inherits Attribute
继承
继承
DataSourceAttribute
属性

注解

ITableControlEventProcessorProvider 可以有多个 DataSource 属性。

构造函数

DataSourceAttribute(String)

创建 DataSourceAttribute 的新实例。

属性

DataSources

返回与此特性关联的 DataSource 标识符。

适用于