SymWriter.DefineLocalVariable 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
현재 어휘 범위에서 단일 변수를 정의합니다.
public:
override void DefineLocalVariable(System::String ^ name, System::Reflection::FieldAttributes attributes, cli::array <System::Byte> ^ signature, System::Diagnostics::SymbolStore::SymAddressKind addrKind, int addr1, int addr2, int addr3, int startOffset, int endOffset);
public:
virtual void DefineLocalVariable(System::String ^ name, System::Reflection::FieldAttributes attributes, cli::array <System::Byte> ^ signature, System::Diagnostics::SymbolStore::SymAddressKind addrKind, int addr1, int addr2, int addr3, int startOffset, int endOffset);
public override void DefineLocalVariable(string name, System.Reflection.FieldAttributes attributes, byte[] signature, System.Diagnostics.SymbolStore.SymAddressKind addrKind, int addr1, int addr2, int addr3, int startOffset, int endOffset);
public virtual void DefineLocalVariable(string name, System.Reflection.FieldAttributes attributes, byte[] signature, System.Diagnostics.SymbolStore.SymAddressKind addrKind, int addr1, int addr2, int addr3, int startOffset, int endOffset);
abstract member DefineLocalVariable : string * System.Reflection.FieldAttributes * byte[] * System.Diagnostics.SymbolStore.SymAddressKind * int * int * int * int * int -> unit
override this.DefineLocalVariable : string * System.Reflection.FieldAttributes * byte[] * System.Diagnostics.SymbolStore.SymAddressKind * int * int * int * int * int -> unit
Public Overrides Sub DefineLocalVariable (name As String, attributes As FieldAttributes, signature As Byte(), addrKind As SymAddressKind, addr1 As Integer, addr2 As Integer, addr3 As Integer, startOffset As Integer, endOffset As Integer)
Public Overridable Sub DefineLocalVariable (name As String, attributes As FieldAttributes, signature As Byte(), addrKind As SymAddressKind, addr1 As Integer, addr2 As Integer, addr3 As Integer, startOffset As Integer, endOffset As Integer)
매개 변수
- name
- String
지역 변수 이름입니다.
- attributes
- FieldAttributes
열거자를 사용하여 FieldAttributes 지정된 지역 변수 특성입니다.
- signature
- Byte[]
지역 변수 서명입니다.
- addrKind
- SymAddressKind
및 addr2addr3 사용SymAddressKind의 addr1주소 유형입니다.
- addr1
- Int32
지역 변수 사양의 첫 번째 주소입니다.
- addr2
- Int32
지역 변수 사양의 두 번째 주소입니다.
- addr3
- Int32
지역 변수 사양의 세 번째 주소입니다.
- startOffset
- Int32
변수의 시작 오프셋입니다. 0이면 이 매개 변수가 무시되고 변수가 전체 범위에서 정의됩니다. 0이 아닌 경우 현재 범위의 오프셋 내에 속합니다.
- endOffset
- Int32
변수의 끝 오프셋입니다. 0이면 이 매개 변수가 무시되고 변수가 전체 범위에서 정의됩니다. 0이 아닌 경우 현재 범위의 오프셋 내에 속합니다.
구현
설명
startOffset 및 endOffset 매개 변수는 선택 사항입니다. 값이 0이면 무시되고 변수는 전체 범위에서 정의됩니다. 값이 0이 아니면 현재 범위의 오프셋에 속합니다.
범위 전체의 서로 다른 오프셋 범위에서 여러 번 발생하는 동일한 이름의 변수에 대해 여러 번 호출 DefineLocalVariable 할 수 있습니다. (이 경우 시작 및 끝 오프셋은 겹치지 않아야 합니다.)