DbProviderSpecificTypePropertyAttribute 类

定义

标识在设置提供程序特定的类型时,使用强类型参数类中的哪个提供程序特定的属性。

public ref class DbProviderSpecificTypePropertyAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class DbProviderSpecificTypePropertyAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
[System.Serializable]
public sealed class DbProviderSpecificTypePropertyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type DbProviderSpecificTypePropertyAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
[<System.Serializable>]
type DbProviderSpecificTypePropertyAttribute = class
    inherit Attribute
Public NotInheritable Class DbProviderSpecificTypePropertyAttribute
Inherits Attribute
继承
DbProviderSpecificTypePropertyAttribute
属性

注解

DbProviderSpecificTypePropertyAttribute提供程序编写器使用 指定提供程序特定的类型参数属性,该属性不是从基类继承的DbParameterSqlDbTypeSqlParameter 属性是 中DbParameter未找到的特定于提供程序的类型属性的示例。

提供程序编写器可以应用 DbProviderSpecificTypePropertyAttribute(true) 来指示提供程序特定的数据类型参数属性。 这允许使用反射来发现它,这使代码生成工具(如 Visual Studio 中使用的工具)能够生成针对特定提供程序的代码。 如果已设置属性,则 IsProviderSpecificTypeProperty 属性返回 true ,否则返回 false

构造函数

DbProviderSpecificTypePropertyAttribute(Boolean)

初始化 DbProviderSpecificTypePropertyAttribute 类的新实例。

属性

IsProviderSpecificTypeProperty

指示特性化属性是否为特定于提供程序的类型。

TypeId

在派生类中实现时,获取此 Attribute 的唯一标识符。

(继承自 Attribute)

方法

Equals(Object)

返回一个值,该值指示此实例是否与指定的对象相等。

(继承自 Attribute)
GetHashCode()

返回此实例的哈希代码。

(继承自 Attribute)
GetType()

获取当前实例的 Type

(继承自 Object)
IsDefaultAttribute()

在派生类中重写时,指示此实例的值是否是派生类的默认值。

(继承自 Attribute)
Match(Object)

当在派生类中重写时,返回一个指示此实例是否等于指定对象的值。

(继承自 Attribute)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

显式接口实现

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

将一组名称映射为对应的一组调度标识符。

(继承自 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

检索对象的类型信息,然后可以使用该信息获取接口的类型信息。

(继承自 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

检索对象提供的类型信息接口的数量(0 或 1)。

(继承自 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

提供对某一对象公开的属性和方法的访问。

(继承自 Attribute)

适用于

另请参阅