DbProviderSpecificTypePropertyAttribute クラス
定義
プロバイダー固有の型の設定時に使用される、厳密に型指定されたパラメーター クラスのプロバイダー固有のプロパティを識別します。Identifies which provider-specific property in the strongly typed parameter classes is to be used when setting a provider-specific type.
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 基本クラスから継承されないプロバイダー固有の型パラメータープロパティを指定するために使用され DbParameter ます。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. SqlDbTypeのプロパティは、 SqlParameter で見つからないプロバイダー固有の型プロパティの例です DbParameter
。The SqlDbType property of a SqlParameter is an example of a provider-specific type property not found in DbParameter
.
プロバイダーのライターは、 DbProviderSpecificTypePropertyAttribute(true)
プロバイダー固有のデータ型パラメータープロパティを示すために適用できます。A provider writer can apply DbProviderSpecificTypePropertyAttribute(true)
to indicate a provider-specific data type parameter property. これにより、リフレクションを使用した検出が可能になります。これにより、Visual Studio で使用されているようなコード生成ツールを使用して、特定のプロバイダーを対象としたコードを生成できます。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. プロパティが IsProviderSpecificTypeProperty true
設定されている場合、プロパティはを返します。それ以外の場合はを返し false
ます。The IsProviderSpecificTypeProperty property returns true
if the property has been set, otherwise false
.
コンストラクター
DbProviderSpecificTypePropertyAttribute(Boolean) |
DbProviderSpecificTypePropertyAttribute クラスの新しいインスタンスを初期化します。Initializes a new instance of a DbProviderSpecificTypePropertyAttribute class. |
プロパティ
IsProviderSpecificTypeProperty |
属性付きプロパティがプロバイダー固有の型であるかどうかを示します。Indicates whether the attributed property is a provider-specific type. |
TypeId |
派生クラスで実装されると、この Attribute の一意の識別子を取得します。When implemented in a derived class, gets a unique identifier for this Attribute. (継承元 Attribute) |
メソッド
Equals(Object) |
このインスタンスが、指定されたオブジェクトと等価であるかどうかを示す値を返します。Returns a value that indicates whether this instance is equal to a specified object. (継承元 Attribute) |
GetHashCode() |
このインスタンスのハッシュ コードを返します。Returns the hash code for this instance. (継承元 Attribute) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
IsDefaultAttribute() |
派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (継承元 Attribute) |
Match(Object) |
派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (継承元 Attribute) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
ToString() |
現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object. (継承元 Object) |
明示的なインターフェイスの実装
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) |
一連の名前を対応する一連のディスパッチ識別子に割り当てます。Maps a set of names to a corresponding set of dispatch identifiers. (継承元 Attribute) |
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) |
オブジェクトの型情報を取得します。この情報はインターフェイスの型情報の取得に使用できます。Retrieves the type information for an object, which can be used to get the type information for an interface. (継承元 Attribute) |
_Attribute.GetTypeInfoCount(UInt32) |
オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。Retrieves the number of type information interfaces that an object provides (either 0 or 1). (継承元 Attribute) |
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) |
オブジェクトによって公開されたプロパティおよびメソッドへのアクセスを提供します。Provides access to properties and methods exposed by an object. (継承元 Attribute) |