Methods.TypePrefix, propriété

Obtient la chaîne de placer avant le type de retour d'une méthode.

Espace de noms :  Microsoft.VisualStudio.Package
Assemblys :   Microsoft.VisualStudio.Package.LanguageService.11.0 (dans Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  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.9.0 (dans Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntaxe

'Déclaration
Public Overridable ReadOnly Property TypePrefix As String
public virtual string TypePrefix { get; }

Valeur de propriété

Type : System.String
La chaîne à placer avant le type de retour d'une méthode.

Remarques

La valeur retournée de cette propriété est utilisée a formater les signatures de méthode qui apparaissent dans l'opération de conseil de méthode d'Intellisense.

Dans Visual Basic, le type de retour d'une fonction suit la déclaration de fonction, séparée par la chaîne « comme », par exemple, Function MyFunc() as Integer.« As » chaîne est préfixé au type de retour.

nullRéférence Null (Nothing en Visual Basic) de retour si vous n'avez pas besoin de ne préfixer le type avec aucun texte.

La propriété de base retourne nullRéférence Null (Nothing en Visual Basic).

Sécurité .NET Framework

Voir aussi

Référence

Methods Classe

Microsoft.VisualStudio.Package, espace de noms