CodeLinePragma クラス

定義

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

public ref class CodeLinePragma
public class CodeLinePragma
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public class CodeLinePragma
type CodeLinePragma = class
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type CodeLinePragma = class
Public Class CodeLinePragma
継承
CodeLinePragma
属性

次のコード例は、 クラスを使用してソース ファイルの CodeLinePragma 特定の行を参照する方法を示しています。

// 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.cs".
CodeLinePragma pragma = new CodeLinePragma("example.cs", 100);
' Creates a CodeLinePragma that references line 100 of the file "example.cs".
Dim pragma As New CodeLinePragma("example.cs", 100)

注釈

CodeLinePragma は、ファイル内の特定の場所を表すために使用できます。 この種類のオブジェクトは、コンパイル後に、コンパイラの警告やエラーに関連付けられた位置参照など、関連するコード要素の場所を格納するためにデバッグ ツールによってよく使用されます。

コンストラクター

CodeLinePragma()

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

CodeLinePragma(String, Int32)

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

プロパティ

FileName

関連付けられたファイルの名前を取得または設定します。

LineNumber

関連付けられた参照の行番号を取得または設定します。

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象