DiagnosticTools.Copy(Diagnostic) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a new Diagnostic, making a deep copy of message (in particular a deep copy of it's Range).
public static Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic? Copy (this Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic message);
static member Copy : Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic -> Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic
<Extension()>
Public Function Copy (message As Diagnostic) As Diagnostic
Parameters
- message
- Diagnostic
Returns
The new diagnostic, or null if message is null.