DkmResolvedDocument.Create Method

Definition

Creates a new resolved document object. Resolved document objects are created by a symbol provider. They are a data container so that a symbol provider may back the resolved document with their own internal state.

public:
 static Microsoft::VisualStudio::Debugger::Symbols::DkmResolvedDocument ^ Create(Microsoft::VisualStudio::Debugger::Symbols::DkmModule ^ Module, System::String ^ DocumentName, Microsoft::VisualStudio::Debugger::Script::DkmScriptDocument ^ ScriptDocument, Microsoft::VisualStudio::Debugger::Symbols::DkmDocumentMatchStrength MatchStrength, Microsoft::VisualStudio::Debugger::Symbols::DkmResolvedDocumentWarning Warning, bool TextRequested, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.Symbols.DkmResolvedDocument Create (Microsoft.VisualStudio.Debugger.Symbols.DkmModule Module, string DocumentName, Microsoft.VisualStudio.Debugger.Script.DkmScriptDocument ScriptDocument, Microsoft.VisualStudio.Debugger.Symbols.DkmDocumentMatchStrength MatchStrength, Microsoft.VisualStudio.Debugger.Symbols.DkmResolvedDocumentWarning Warning, bool TextRequested, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.Symbols.DkmResolvedDocument Create (Microsoft.VisualStudio.Debugger.Symbols.DkmModule Module, string DocumentName, Microsoft.VisualStudio.Debugger.Script.DkmScriptDocument? ScriptDocument, Microsoft.VisualStudio.Debugger.Symbols.DkmDocumentMatchStrength MatchStrength, Microsoft.VisualStudio.Debugger.Symbols.DkmResolvedDocumentWarning Warning, bool TextRequested, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.Symbols.DkmModule * string * Microsoft.VisualStudio.Debugger.Script.DkmScriptDocument * Microsoft.VisualStudio.Debugger.Symbols.DkmDocumentMatchStrength * Microsoft.VisualStudio.Debugger.Symbols.DkmResolvedDocumentWarning * bool * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.Symbols.DkmResolvedDocument
Public Shared Function Create (Module As DkmModule, DocumentName As String, ScriptDocument As DkmScriptDocument, MatchStrength As DkmDocumentMatchStrength, Warning As DkmResolvedDocumentWarning, TextRequested As Boolean, DataItem As DkmDataItem) As DkmResolvedDocument

Parameters

Module
DkmModule

[In] The DkmModule class represents a code bundle (ex: dll or exe) which is or once was loaded into one or more processes. The DkmModule class is the central object to the symbol APIs, and is 1:1 with the symbol handler's notation of what is loaded. If a code bundle loads into three different processes (or the same process but with three different base addresses or three different app domains) but the symbol handler thinks of all of these as being identical, there will be only one module object.

DocumentName
String

[In] Name of the source file. This is generally a full path, but in some scenarios it make be a partial path or just a name with extension (ex: example.cpp). In the case of a dynamic document (ex: running script from internet explorer) 'Path' could be a URL rather than a local file path.

ScriptDocument
DkmScriptDocument

[In,Optional] Script document which this resolved document represents. This should be null for non script-based symbol providers.

MatchStrength
DkmDocumentMatchStrength

[In] Indicates how strong of a match there was between the DkmDocumentQuery and the resulting DkmResolvedDocument.

Warning
DkmResolvedDocumentWarning

[In] Warning that occurred during the match. Depending on context, these may need to be surfaced to the user.

TextRequested
Boolean

[In] If true, return the source text.

DataItem
DkmDataItem

[In,Optional] Data object to add to the new DkmResolvedDocument instance. Pass 'null' in the case that the caller doesn't need to add a data item.

Returns

[Out] Result of this method call.

Applies to