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)

적용 대상