Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Creates a new error task item for the Error List, for the supplied text, marker type, and file name.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaration
Public Overridable Function CreateErrorTaskItem ( _
span As TextSpan, _
markerType As MARKERTYPE, _
filename As String _
) As DocumentTask
public virtual DocumentTask CreateErrorTaskItem(
TextSpan span,
MARKERTYPE markerType,
string filename
)
public:
virtual DocumentTask^ CreateErrorTaskItem(
TextSpan span,
MARKERTYPE markerType,
String^ filename
)
abstract CreateErrorTaskItem :
span:TextSpan *
markerType:MARKERTYPE *
filename:string -> DocumentTask
override CreateErrorTaskItem :
span:TextSpan *
markerType:MARKERTYPE *
filename:string -> DocumentTask
public function CreateErrorTaskItem(
span : TextSpan,
markerType : MARKERTYPE,
filename : String
) : DocumentTask
Parameters
span
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpanA TextSpan structure, which defines a block of text.
markerType
Type: Microsoft.VisualStudio.TextManager.Interop.MARKERTYPEA member of the MARKERTYPE enumeration.
filename
Type: System.StringThe name of the file.
Return Value
Type: Microsoft.VisualStudio.Package.DocumentTask
A new instance of DocumentTask.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.