CodeLinePragmaとは? わかりやすく解説

CodeLinePragma クラス

特定ファイル内の特定の位置を表します。

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文構文

<SerializableAttribute> _
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
<ComVisibleAttribute(True)> _
Public Class CodeLinePragma
Dim instance As CodeLinePragma
[SerializableAttribute] 
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] 
[ComVisibleAttribute(true)] 
public class CodeLinePragma
[SerializableAttribute] 
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] 
[ComVisibleAttribute(true)] 
public ref class CodeLinePragma
/** @attribute SerializableAttribute() */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) */ 
/** @attribute ComVisibleAttribute(true) */ 
public class CodeLinePragma
SerializableAttribute 
ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) 
ComVisibleAttribute(true) 
public class CodeLinePragma
解説解説
使用例使用例
' Creates a CodeLinePragma that references line 100 of the file "example.cs".
Dim pragma As New CodeLinePragma("example.cs",
 100)
// Creates a CodeLinePragma that references line 100 of the file "example.cs".
CodeLinePragma pragma = new CodeLinePragma("example.cs",
 100);
// Creates a CodeLinePragma that references line 100 of the file "example.cs".
CodeLinePragma^ pragma = gcnew CodeLinePragma( "example.cs",100 );
// Creates a CodeLinePragma that references line 100 of
// the file "example.jsl".
CodeLinePragma pragma = new CodeLinePragma("example.jsl",
 100);
継承階層継承階層
System.Object
  System.CodeDom.CodeLinePragma
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

CodeLinePragma コンストラクタ ()


CodeLinePragma コンストラクタ (String, Int32)

CodeLinePragma クラスの新しいインスタンスを初期化します。

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文構文

使用例使用例
' Creates a CodeLinePragma that references line 100 of the file "example.cs".
Dim pragma As New CodeLinePragma("example.cs",
 100)
// Creates a CodeLinePragma that references line 100 of the file "example.cs".
CodeLinePragma pragma = new CodeLinePragma("example.cs",
 100);
// Creates a CodeLinePragma that references line 100 of the file "example.cs".
CodeLinePragma^ pragma = gcnew CodeLinePragma( "example.cs",100 );
// Creates a CodeLinePragma that references line 100 of
// the file "example.jsl".
CodeLinePragma pragma = new CodeLinePragma("example.jsl",
 100);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

CodeLinePragma コンストラクタ

CodeLinePragma クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
CodeLinePragma () CodeLinePragma クラスの新しいインスタンスを初期化します。
CodeLinePragma (String, Int32) CodeLinePragma クラスの新しいインスタンスを初期化します。
参照参照

関連項目

CodeLinePragma クラス
CodeLinePragma メンバ
System.CodeDom 名前空間

CodeLinePragma プロパティ


CodeLinePragma メソッド


CodeLinePragma メンバ

特定ファイル内の特定の位置を表します。

CodeLinePragma データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

CodeLinePragma クラス
System.CodeDom 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「CodeLinePragma」の関連用語

CodeLinePragmaのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



CodeLinePragmaのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS