Metodo LanguageService.BeginInvoke
richiama un metodo su un altro thread.
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
<HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization := True, _
ExternalThreading := True)> _
Public Function BeginInvoke ( _
method As Delegate, _
args As Object() _
) As IAsyncResult
[HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization = true,
ExternalThreading = true)]
public IAsyncResult BeginInvoke(
Delegate method,
Object[] args
)
Parametri
- method
Tipo: System.Delegate
[in] il metodo da richiamare.
- args
Tipo: array<System.Object[]
[in] I possibili argomenti al metodo richiamato.
Valore restituito
Tipo: System.IAsyncResult
Se l'operazione riesce, restituisce IAsyncResult oggetto; in caso contrario, restituisce un valore null se l'operazione invoke non riuscire.
Implementa
ISynchronizeInvoke.BeginInvoke(Delegate, array<Object[])
Note
Questo metodo viene utilizzato per avviare un'operazione di analisi in background.
[!NOTA]
L'attributo HostProtectionAttribute applicato a questo tipo di membro dispone del seguente valore per la proprietà Resources: Synchronization | ExternalThreading. L'oggetto HostProtectionAttribute non influisce sulle applicazioni desktop, che in genere vengono avviate facendo doppio clic sull'icona, digitando un comando oppure immettendo un URL in un browser. Per ulteriori informazioni, vedere la classe HostProtectionAttribute o programmazione per SQL Server e attributi di protezione host.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.