CodeTypeOfExpression クラス
アセンブリ: System (system.dll 内)

<SerializableAttribute> _ <ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _ <ComVisibleAttribute(True)> _ Public Class CodeTypeOfExpression Inherits CodeExpression
[SerializableAttribute] [ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] [ComVisibleAttribute(true)] public class CodeTypeOfExpression : CodeExpression
[SerializableAttribute] [ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] [ComVisibleAttribute(true)] public ref class CodeTypeOfExpression : public CodeExpression

実行時に Type を返す typeof 式を表す、CodeTypeOfExpression。
Type プロパティは、Type オブジェクトを返すデータ型を指定します。
CodeTypeReferenceExpression を使用すると、CodeCastExpression を作成して名前を指定した型にオブジェクトをキャストするときのように、名前によって型を参照するソース コードを表すことができます。

CodeTypeOfExpression を使用して typeof 式を表す例を次に示します。
' Creates a reference to the System.DateTime type. Dim typeRef1 As New CodeTypeReference("System.DateTime") ' Creates a typeof expression for the specified type reference. Dim typeof1 As New CodeTypeOfExpression(typeRef1) ' A Visual Basic code generator produces the following source code for the preceeding example code: ' GetType(System.DateTime)
// Creates a reference to the System.DateTime type. CodeTypeReference typeRef1 = new CodeTypeReference("System.DateTime"); // Creates a typeof expression for the specified type reference. CodeTypeOfExpression typeof1 = new CodeTypeOfExpression(typeRef1); // A C# code generator produces the following source code for the preceeding example code: // typeof(System.DateTime);
// Creates a reference to the System.DateTime type. CodeTypeReference^ typeRef1 = gcnew CodeTypeReference( "System.DateTime" ); // Creates a typeof expression for the specified type reference. CodeTypeOfExpression^ typeof1 = gcnew CodeTypeOfExpression( typeRef1 ); // A C# code generator produces the following source code for the preceeding example code: // typeof(System.DateTime);
// Creates a reference to the System.DateTime type. CodeTypeReference typeRef1 = new CodeTypeReference("System.DateTime"); // Creates a typeof expression for the specified type reference. CodeTypeOfExpression typeof1 = new CodeTypeOfExpression(typeRef1); // A VJ# code generator produces the following source code for the // preceeding example code: // System.DateTime.class.ToType();

System.CodeDom.CodeObject
System.CodeDom.CodeExpression
System.CodeDom.CodeTypeOfExpression


Windows 98, Windows 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


CodeTypeOfExpression コンストラクタ ()
アセンブリ: System (system.dll 内)


Windows 98, Windows 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


CodeTypeOfExpression コンストラクタ (Type)
アセンブリ: System (system.dll 内)


Windows 98, Windows 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


CodeTypeOfExpression コンストラクタ (String)
アセンブリ: System (system.dll 内)


Windows 98, Windows 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


CodeTypeOfExpression コンストラクタ (CodeTypeReference)
アセンブリ: System (system.dll 内)


Windows 98, Windows 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


CodeTypeOfExpression コンストラクタ

名前 | 説明 |
---|---|
CodeTypeOfExpression () | CodeTypeOfExpression クラスの新しいインスタンスを初期化します。 |
CodeTypeOfExpression (CodeTypeReference) | CodeTypeOfExpression クラスの新しいインスタンスを初期化します。 |
CodeTypeOfExpression (String) | 型を指定して、CodeTypeOfExpression クラスの新しいインスタンスを初期化します。 |
CodeTypeOfExpression (Type) | 型を指定して、CodeTypeOfExpression クラスの新しいインスタンスを初期化します。 |

CodeTypeOfExpression プロパティ

名前 | 説明 | |
---|---|---|
![]() | Type | typeof 式で参照されるデータ型を取得または設定します。 |
![]() | UserData | 現在のオブジェクトのユーザー定義可能なデータを取得または設定します。 ( CodeObject から継承されます。) |

CodeTypeOfExpression メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

CodeTypeOfExpression メンバ
指定した型名の Type を返す式である、typeof 式を表します。
CodeTypeOfExpression データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | Type | typeof 式で参照されるデータ型を取得または設定します。 |
![]() | UserData | 現在のオブジェクトのユーザー定義可能なデータを取得または設定します。(CodeObject から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

Weblioに収録されているすべての辞書からCodeTypeOfExpressionを検索する場合は、下記のリンクをクリックしてください。

- CodeTypeOfExpressionのページへのリンク