संपादित करें

इसके माध्यम से साझा किया गया


SymMethod Class

Definition

Represents a method within a symbol store.

public ref class SymMethod : System::Diagnostics::SymbolStore::ISymbolMethod
public ref class SymMethod : System::Diagnostics::SymbolStore::SymMethodBase, IDisposable, System::Diagnostics::SymbolStore::ISymbolMethod
public class SymMethod : System.Diagnostics.SymbolStore.ISymbolMethod
[System.Runtime.InteropServices.ComVisible(true)]
public class SymMethod : System.Diagnostics.SymbolStore.ISymbolMethod
[System.Runtime.InteropServices.ComVisible(true)]
public class SymMethod : System.Diagnostics.SymbolStore.SymMethodBase, IDisposable, System.Diagnostics.SymbolStore.ISymbolMethod
type SymMethod = class
    interface ISymbolMethod
[<System.Runtime.InteropServices.ComVisible(true)>]
type SymMethod = class
    interface ISymbolMethod
[<System.Runtime.InteropServices.ComVisible(true)>]
type SymMethod = class
    inherit SymMethodBase
    interface ISymbolMethod
    interface IDisposable
Public Class SymMethod
Implements ISymbolMethod
Public Class SymMethod
Inherits SymMethodBase
Implements IDisposable, ISymbolMethod
Inheritance
SymMethod
Inheritance
SymMethod
Attributes
Implements

Remarks

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.

Constructors

SymMethod(ISymUnmanagedMethod*)

Initializes a new instance of the SymMethod class from a raw pointer to an unmanaged interface.

SymMethod(ISymUnmanagedMethod*)

Initializes a new instance of the SymMethod class from a raw pointer to the unmanaged ISymUnmanagedMethod interface.

Properties

RootScope

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

SequencePointCount

Gets a count of the sequence points in the method.

Token

Gets the SymbolToken containing the metadata for the current method.

Methods

__dtor()

This API supports the product infrastructure and is not intended to be used directly from your code.

Releases the resources held by the current instance of the SymMethod object.

{dtor}()

This API supports the product infrastructure and is not intended to be used directly from your code.

Releases the resources held by the current instance of the SymMethod object.

{dtor}()

Releases the resources held by the current instance.

(Inherited from SymMethodBase)
Dispose()

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

Dispose(Boolean)

Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the SymMethod class.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize()

Releases unmanaged resources and performs other cleanup operations before the SymMethod is reclaimed by garbage collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetNamespace()

Throws a NotSupportedException in all cases.

GetOffset(ISymbolDocument, Int32, Int32)

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

GetParameters()

Gets the parameters for the current method.

GetRanges(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.

GetScope(Int32)

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

GetSequencePoints(Int32[], ISymbolDocument[], Int32[], Int32[], Int32[], Int32[])

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

GetSourceStartEnd(ISymbolDocument[], Int32[], Int32[])

Throws a NotSupportedException in all cases.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RootScopeInternal()

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to