ISymbolWriter.DefineLocalVariable(String, FieldAttributes, Byte[], SymAddressKind, Int32, Int32, Int32, Int32, Int32) Methode
Definition
Definiert eine einzelne Variable im aktuellen lexikalischen Gültigkeitsbereich.Defines a single variable in the current lexical scope.
public:
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 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
Public 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)
Parameter
- name
- String
Der Name der lokalen Variablen.The local variable name.
- attributes
- FieldAttributes
Eine bitweise Kombination der lokalen Variablenattribute.A bitwise combination of the local variable attributes.
- signature
- Byte[]
Die Signatur der lokalen Variablen.The local variable signature.
- addrKind
- SymAddressKind
Die Adresstypen für addr1
, addr2
und addr3
.The address types for addr1
, addr2
, and addr3
.
- addr1
- Int32
Die erste Adresse für die Angabe der lokalen Variablen.The first address for the local variable specification.
- addr2
- Int32
Die zweite Adresse für die Angabe der lokalen Variablen.The second address for the local variable specification.
- addr3
- Int32
Die dritte Adresse für die Angabe der lokalen Variablen.The third address for the local variable specification.
- startOffset
- Int32
Der Anfangsoffset für die Variable.The start offset for the variable. Wenn der Parameter 0 (null) ist, wird er ignoriert, und die Variable ist im gesamten Gültigkeitsbereich definiert.If this parameter is zero, it is ignored and the variable is defined throughout the entire scope. Wenn der Parameter ungleich 0 (null) ist, fällt die Variable in die Offsets des aktuellen Gültigkeitsbereichs.If the parameter is nonzero, the variable falls within the offsets of the current scope.
- endOffset
- Int32
Der Endoffset für die Variable.The end offset for the variable. Wenn der Parameter 0 (null) ist, wird er ignoriert, und die Variable ist im gesamten Gültigkeitsbereich definiert.If this parameter is zero, it is ignored and the variable is defined throughout the entire scope. Wenn der Parameter ungleich 0 (null) ist, fällt die Variable in die Offsets des aktuellen Gültigkeitsbereichs.If the parameter is nonzero, the variable falls within the offsets of the current scope.
Hinweise
Die Parameter startOffset
und endOffset
sind optional.The startOffset
and endOffset
parameters are optional. Wenn der Wert 0 (null) ist, werden Sie ignoriert, und die Variable wird im gesamten Bereich definiert.If their value is zero, they are ignored and the variable is defined throughout the entire scope. Wenn der Wert ungleich 0 (null) ist, fällt die Variable innerhalb der Offsets des aktuellen Gültigkeits Bereichs.If their value is nonzero, the variable falls within the offsets of the current scope.
Sie können mehrmals DefineLocalVariable für eine Variable mit demselben Namen aufgerufen werden, die mehrmals in verschiedenen Offset Bereichen innerhalb eines Bereichs auftritt.You can call DefineLocalVariable multiple times for a variable of the same name that occurs multiple times in different offset ranges throughout a scope. (In diesem Fall dürfen sich Start-und Endoffsets nicht überlappen.)(In this case, start and end offsets must not overlap.)