TextRewriter.RewriteAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
| Nome | Description |
|---|---|
| RewriteAsync(String) |
Reescreve o texto fornecido no tom padrão . |
| RewriteAsync(String, TextRewriteTone) |
Reescreve o texto fornecido no tom especificado. |
RewriteAsync(String)
public:
virtual IAsyncOperationWithProgress<LanguageModelResponseResult ^, Platform::String ^> ^ RewriteAsync(Platform::String ^ text) = RewriteAsync;
IAsyncOperationWithProgress<LanguageModelResponseResult, winrt::hstring const&> RewriteAsync(winrt::hstring const& text);
public IAsyncOperationWithProgress<LanguageModelResponseResult,string> RewriteAsync(string text);
function rewriteAsync(text)
Public Function RewriteAsync (text As String) As IAsyncOperationWithProgress(Of LanguageModelResponseResult, String)
Parâmetros
- text
-
String
Platform::String
winrt::hstring
O texto a ser reescrito.
Retornos
IAsyncOperationWithProgress<LanguageModelResponseResult,String>
IAsyncOperationWithProgress<LanguageModelResponseResult,Platform::String>
IAsyncOperationWithProgress<LanguageModelResponseResult,winrt::hstring>
O texto reescrito no tom padrão .
Aplica-se a
RewriteAsync(String, TextRewriteTone)
Reescreve o texto fornecido no tom especificado.
public:
virtual IAsyncOperationWithProgress<LanguageModelResponseResult ^, Platform::String ^> ^ RewriteAsync(Platform::String ^ text, TextRewriteTone tone) = RewriteAsync;
IAsyncOperationWithProgress<LanguageModelResponseResult, winrt::hstring const&> RewriteAsync(winrt::hstring const& text, TextRewriteTone const& tone);
public IAsyncOperationWithProgress<LanguageModelResponseResult,string> RewriteAsync(string text, TextRewriteTone tone);
function rewriteAsync(text, tone)
Public Function RewriteAsync (text As String, tone As TextRewriteTone) As IAsyncOperationWithProgress(Of LanguageModelResponseResult, String)
Parâmetros
- text
-
String
Platform::String
winrt::hstring
O texto a ser reescrito.
- tone
- TextRewriteTone
O tom no qual reescrever o texto.
Retornos
IAsyncOperationWithProgress<LanguageModelResponseResult,String>
IAsyncOperationWithProgress<LanguageModelResponseResult,Platform::String>
IAsyncOperationWithProgress<LanguageModelResponseResult,winrt::hstring>
O texto reescrito no tom especificado.