NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ILGenerator.Emit (OpCode, String)

Puts the specified instruction onto the IL stream followed by the metadata token for the given string.

[Visual Basic]
Overloads Overridable Public Sub Emit( _
   ByVal opcode As OpCode, _
   ByVal str As String _
)
[C#]
public virtual void Emit(
   OpCode opcode,
   string str
);
[C++]
public: virtual void Emit(
   OpCode opcode,
   String* str
);
[JScript]
public function Emit(
   opcode : OpCode,
   str : String
);

Parameters

opcode
The IL instruction to be emitted onto the stream.
str
The String to be emitted.

Remarks

The instruction values are defined in the OpCodes enumeration. The location of str is recorded for future fixups if the module is persisted to a PE.

See Also

ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace | ILGenerator.Emit Overload List