edmValue を指定した型の CLR 値に変換します。
名前空間: Microsoft.Data.Edm.EdmToClrConversion
アセンブリ: Microsoft.Data.Edm (Microsoft.Data.Edm.dll)
構文
'宣言
Public Function AsClrValue ( _
edmValue As IEdmValue, _
clrType As Type _
) As Object
'使用
Dim instance As EdmToClrConverter
Dim edmValue As IEdmValue
Dim clrType As Type
Dim returnValue As Object
returnValue = instance.AsClrValue(edmValue, _
clrType)
public Object AsClrValue(
IEdmValue edmValue,
Type clrType
)
public:
Object^ AsClrValue(
IEdmValue^ edmValue,
Type^ clrType
)
member AsClrValue :
edmValue:IEdmValue *
clrType:Type -> Object
public function AsClrValue(
edmValue : IEdmValue,
clrType : Type
) : Object
パラメーター
- edmValue
型: Microsoft.Data.Edm.Values.IEdmValue
変換する EDM 値。
- clrType
型: System.Type
CLR の種類。
戻り値
型: System.Object
edmValue から変換された CLR 値。
説明
T のサポートされている値:
CLR 列挙型。
既定のコンストラクターを含む CLR クラス、setter を含むパブリック プロパティ、および次の形のコレクション プロパティ:
IEnumerable<T> EnumerableProperty { get; set; }
ICollection<T> CollectionProperty { get; set; }
IList<T> ListProperty { get; set; }
ICollection<T> CollectionProperty { get { return this.nonNullCollection; } }
IList<T> ListProperty { get { return this.nonNullList; } }
このメソッドは、値型のボックス化およびボックス化解除を実行します。 AsClrString(IEdmValue) などの値型に固有のメソッドを使用して、ボックス化およびボックス化解除を回避します。