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.DefineLabel

Declares a new Label. This is just a token and does not yet represent any particular location within the stream.

[Visual Basic]
Overridable Public Function DefineLabel() As Label
[C#]
public virtual Label DefineLabel();
[C++]
public: virtual Label DefineLabel();
[JScript]
public function DefineLabel() : Label;

Return Value

Returns a new label that can be used as a token for branching.

Remarks

In order to set the position of the label within the stream, you must call MarkLabel.

See Also

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