Export (0) Print
Expand All

DbProviderSpecificTypePropertyAttribute Class

Identifies which provider-specific property in the strongly typed parameter classes is to be used when setting a provider-specific type.

Namespace: System.Data.Common
Assembly: System.Data (in system.data.dll)

[SerializableAttribute] 
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=true)] 
public sealed class DbProviderSpecificTypePropertyAttribute : Attribute
/** @attribute SerializableAttribute() */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=true) */ 
public final class DbProviderSpecificTypePropertyAttribute extends Attribute
SerializableAttribute 
AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=true) 
public final class DbProviderSpecificTypePropertyAttribute extends Attribute
Not applicable.

The DbProviderSpecificTypePropertyAttribute is used by a provider writer to designate a provider-specific type parameter property which is not inherited from the DbParameter base class. The SqlDbType property of a SqlParameter is an example of a provider-specific type property not found in DbParameter.

A provider writer can apply DbProviderSpecificTypePropertyAttribute(true) to indicate a provider-specific data type parameter property. This allows for its discovery using reflection, which enables code generation tools, such as those used in Visual Studio, to generate code geared to a specific provider. The IsProviderSpecificTypeProperty property returns true if the property has been set, otherwise false.

System.Object
   System.Attribute
    System.Data.Common.DbProviderSpecificTypePropertyAttribute

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft