SymMethod Class

 

Updated: March 13, 2015

System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents a method within a symbol store.

Namespace:   System.Diagnostics.SymbolStore
Assembly:  ISymWrapper (in ISymWrapper.dll)

System.Object
  System.Diagnostics.SymbolStore.SymMethodBase
    System.Diagnostics.SymbolStore.SymMethod

[ComVisibleAttribute(true)]
[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
public class SymMethod : SymMethodBase, ISymbolMethod, IDisposable

NameDescription
System_CAPS_pubpropertyRootScope

Gets the root lexical scope for the current method. This scope encloses the entire method.

System_CAPS_pubpropertySequencePointCount

Gets a count of the sequence points in the method.

System_CAPS_pubpropertyToken

Gets the SymbolToken containing the metadata for the current method.

NameDescription
System_CAPS_pubmethod{dtor}()

Releases the resources held by the current instance. (Inherited from SymMethodBase.)

System_CAPS_pubmethodDispose()

Releases the resources used by the current instance of the SymMethod class.

System_CAPS_protmethodDispose(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Called by the Dispose and Finalize methods to release the managed and unmanaged resources used by the current instance of the SymMethod class.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Releases unmanaged resources and performs other cleanup operations before the SymMethod is reclaimed by garbage collection.(Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetNamespace()

Throws a NotSupportedException in all cases.

System_CAPS_pubmethodGetOffset(ISymbolDocument, Int32, Int32)

Gets the Microsoft intermediate language (MSIL) offset within the method that corresponds to the specified position.

System_CAPS_pubmethodGetParameters()

Gets the parameters for the current method.

System_CAPS_pubmethodGetRanges(ISymbolDocument, Int32, Int32)

Gets an array of start and end offset pairs that correspond to the ranges of Microsoft intermediate language (MSIL) offsets that a given position covers within this method.

System_CAPS_pubmethodGetScope(Int32)

Returns the most enclosing lexical scope corresponding to an offset within a method.

System_CAPS_pubmethodGetSequencePoints(Int32[], ISymbolDocument[], Int32[], Int32[], Int32[], Int32[])

Gets the sequence points for the current method and stores the information in the specified arrays.

System_CAPS_pubmethodGetSourceStartEnd(ISymbolDocument[], Int32[], Int32[])

Throws a NotSupportedException in all cases.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRootScopeInternal()

Gets the root lexical scope for the current method. This scope encloses the entire method.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The SymMethod class provides access only to the symbol-related attributes of a method, such as sequence points, lexical scopes, and parameter information. Use the System.Reflection classes to read the type-related attributes of a method.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: