Condividi tramite


Metodo LanguageService.QueryInvalidEncoding

Determina se il formato di origine fornito è valido o meno.

Spazio dei nomi:  Microsoft.VisualStudio.Package
Assembly:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Sintassi

'Dichiarazione
Public Overridable Function QueryInvalidEncoding ( _
    format As __VSTFF, _
    <OutAttribute> ByRef errorMessage As String _
) As Boolean
public virtual bool QueryInvalidEncoding(
    __VSTFF format,
    out string errorMessage
)

Parametri

  • errorMessage
    Tipo: System.String%
    [out] Una stringa di errore che descrive il motivo o come il formato non è valido.Potrebbe essere sufficiente “il formato XX non è supportato.„

Valore restituito

Tipo: System.Boolean
Restituisce true se il formato non è supportato dal servizio di linguaggio; in caso contrario, restituisce false (il formato è supportato).

Note

Se viene restituito true per indicare un formato non supportato, è anche necessario specificare una spiegazione del messaggio di errore quale formato specifico non è supportato.

Al metodo di base restituisce sempre false (tutte le codifiche supportate) e un valore null vengano errorMessage.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

LanguageService Classe

Spazio dei nomi Microsoft.VisualStudio.Package