SymDocument SymDocument SymDocument SymDocument Class

定義

代表符號存放區所參考的文件。Represents a document referenced by a symbol store.

public ref class SymDocument : System::Diagnostics::SymbolStore::SymDocumentBase, IDisposable, System::Diagnostics::SymbolStore::ISymbolDocument
[System.Runtime.InteropServices.ComVisible(true)]
public class SymDocument : System.Diagnostics.SymbolStore.SymDocumentBase, IDisposable, System.Diagnostics.SymbolStore.ISymbolDocument
type SymDocument = class
    inherit SymDocumentBase
    interface ISymbolDocument
    interface IDisposable
Public Class SymDocument
Inherits SymDocumentBase
Implements IDisposable, ISymbolDocument
繼承
SymDocumentSymDocumentSymDocumentSymDocument
屬性
實作

備註

定義文件的 URL 和文件類型的 GUID。A document is defined by a URL and a document type GUID. 使用文件類型的 GUID 和 URL,您可以找出文件。Using the document type GUID and the URL, you can locate the document. 您可以選擇性地儲存文件來源,在符號存放區中。You can optionally store document source in the symbol store.

此介面也提供存取該來源中,如果有的話。This interface also provides access to that source, if present.

建構函式

SymDocument(ISymUnmanagedDocument*) SymDocument(ISymUnmanagedDocument*) SymDocument(ISymUnmanagedDocument*) SymDocument(ISymUnmanagedDocument*)

使用非受控 ISymUnmanagedDocument 物件的指定指標,初始化 SymDocument 類別的新執行個體。Initializes a new instance of the SymDocument class using the specified pointer to an unmanaged ISymUnmanagedDocument object.

SymDocument(ISymUnmanagedDocument*) SymDocument(ISymUnmanagedDocument*) SymDocument(ISymUnmanagedDocument*) SymDocument(ISymUnmanagedDocument*)

使用非受控 ISymUnmanagedDocument 物件的指定指標,來初始化 SymDocument 類別的新執行個體。Initializes a new instance of the SymDocument class using the specified pointer to an unmanaged ISymUnmanagedDocument object.

屬性

CheckSumAlgorithmId CheckSumAlgorithmId CheckSumAlgorithmId CheckSumAlgorithmId

在所有情況下都擲回 NotSupportedExceptionThrows a NotSupportedException in all cases.

DocumentType DocumentType DocumentType DocumentType

取得目前文件的類型。Gets the type of the current document.

HasEmbeddedSource HasEmbeddedSource HasEmbeddedSource HasEmbeddedSource

指出目前文件的來源是否存放在符號存放區中。Indicates whether the source for the current document is stored in the symbol store.

Language Language Language Language

取得目前文件的語言。Gets the language of the current document.

LanguageVendor LanguageVendor LanguageVendor LanguageVendor

取得目前文件的語言廠商。Gets the language vendor of the current document.

SourceLength SourceLength SourceLength SourceLength

取得內嵌來源的長度 (以位元組為單位)。Gets the length, in bytes, of the embedded source.

URL URL URL URL

取得目前文件的 URL。Gets the URL of the current document.

方法

Dispose() Dispose() Dispose() Dispose()

SymDocument 類別的目前執行個體所使用的資源釋出。Releases the resources used by the current instance of the SymDocument class.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Dispose()Finalize() 方法呼叫,以釋出 SymDocument 類別之目前執行個體所使用的 Managed 和 Unmanaged 資源。Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the SymDocument class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

釋出 Unmanaged 資源並執行其他清除作業後,記憶體回收才能重新回收 SymReaderReleases unmanaged resources and performs other cleanup operations before the SymReader is reclaimed by garbage collection.

FindClosestLine(Int32) FindClosestLine(Int32) FindClosestLine(Int32) FindClosestLine(Int32)

在提供目前文件中不一定是序列 (Sequence) 點的行之情況下,傳回是序列點之最接近行的行號。Returns the line number of the closest line that is a sequence point, given a line in the current document that might or might not be a sequence point.

GetCheckSum() GetCheckSum() GetCheckSum() GetCheckSum()

在所有情況下都擲回 NotSupportedExceptionThrows a NotSupportedException in all cases.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetSourceRange(Int32, Int32, Int32, Int32) GetSourceRange(Int32, Int32, Int32, Int32) GetSourceRange(Int32, Int32, Int32, Int32) GetSourceRange(Int32, Int32, Int32, Int32)

在所有情況下都擲回 NotSupportedExceptionThrows a NotSupportedException in all cases.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
GetUnmanaged() GetUnmanaged() GetUnmanaged() GetUnmanaged()

取得這個 SymDocument 執行個體的非受控 ISymUnmanagedDocument 介面指標。Gets a pointer to the unmanaged ISymUnmanagedDocument interface for this SymDocument instance.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
__dtor() __dtor() __dtor() __dtor()

將目前執行個體所持有的資源釋出。Releases the resources held by the current instance.

{dtor}() {dtor}() {dtor}() {dtor}()

將目前執行個體所持有的資源釋出。Releases the resources held by the current instance.

適用於