Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Crée une nouvelle tâche d'erreur pour Liste d'erreurs, pour le texte, le type de marqueur, et le nom de fichier fournis.
Espace de noms : Microsoft.VisualStudio.Package
Assemblys : Microsoft.VisualStudio.Package.LanguageService.10.0 (dans Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (dans Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (dans Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (dans Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntaxe
'Déclaration
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
)
Paramètres
- span
Type : Microsoft.VisualStudio.TextManager.Interop.TextSpan
Une structure d'TextSpan, qui définit un bloc de texte.
- markerType
Type : Microsoft.VisualStudio.TextManager.Interop.MARKERTYPE
Membre de l'énumération MARKERTYPE.
- filename
Type : System.String
Nom du fichier.
Valeur de retour
Type : Microsoft.VisualStudio.Package.DocumentTask
Nouvelle instance de DocumentTask.
Sécurité .NET Framework
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.