Share via


MetadataBuilder.AddLocalScope 메서드

정의

로컬 범위 디버그 정보를 추가합니다.

public:
 System::Reflection::Metadata::LocalScopeHandle AddLocalScope(System::Reflection::Metadata::MethodDefinitionHandle method, System::Reflection::Metadata::ImportScopeHandle importScope, System::Reflection::Metadata::LocalVariableHandle variableList, System::Reflection::Metadata::LocalConstantHandle constantList, int startOffset, int length);
public System.Reflection.Metadata.LocalScopeHandle AddLocalScope (System.Reflection.Metadata.MethodDefinitionHandle method, System.Reflection.Metadata.ImportScopeHandle importScope, System.Reflection.Metadata.LocalVariableHandle variableList, System.Reflection.Metadata.LocalConstantHandle constantList, int startOffset, int length);
member this.AddLocalScope : System.Reflection.Metadata.MethodDefinitionHandle * System.Reflection.Metadata.ImportScopeHandle * System.Reflection.Metadata.LocalVariableHandle * System.Reflection.Metadata.LocalConstantHandle * int * int -> System.Reflection.Metadata.LocalScopeHandle
Public Function AddLocalScope (method As MethodDefinitionHandle, importScope As ImportScopeHandle, variableList As LocalVariableHandle, constantList As LocalConstantHandle, startOffset As Integer, length As Integer) As LocalScopeHandle

매개 변수

method
MethodDefinitionHandle

포함하는 메서드입니다.

importScope
ImportScopeHandle

연결된 가져오기 범위의 핸들입니다.

variableList
LocalVariableHandle

범위가 변수를 선언하는 경우 이를 첫 번째 변수의 핸들로 설정합니다. 그렇지 않으면 이를 다음 범위 정의에 의해 선언된 첫 번째 변수의 핸들로 설정합니다. 범위가 변수를 정의하지 않으면 System.Reflection.Metadata.Ecma335.MetadataTokens.LocalVariableHandle(1)입니다.

constantList
LocalConstantHandle

범위가 상수를 선언하는 경우 이를 첫 번째 상수의 핸들로 설정합니다. 그렇지 않으면 이를 다음 범위 정의에 의해 선언된 첫 번째 상수의 핸들로 설정합니다. 범위가 상수를 정의하지 않으면 System.Reflection.Metadata.Ecma335.MetadataTokens.LocalConstantHandle(1)입니다.

startOffset
Int32

범위에 포함된 첫 번째 명령의 오프셋입니다.

length
Int32

범위의 길이(바이트)입니다.

반환

추가된 로컬 범위에 대한 핸들입니다.

설명

로컬 범위는 해당 메서드 정의와 동일한 순서로 추가해야 합니다.

메서드 내에서 오름차순으로 정렬한 다음 내림차순 startOffsetlength으로 정렬해야 합니다.

적용 대상