Compartilhar via


CortanaActionableInsightsOptions.SurroundingText Propriedade

Definição

Texto do contexto ao redor do conteúdo fornecido à CortanaActionableInsights para mostrar insights.

public:
 property Platform::String ^ SurroundingText { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring SurroundingText();

void SurroundingText(winrt::hstring value);
/// [get: Windows.Foundation.Metadata.Deprecated("CortanaActionableInsightsOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("CortanaActionableInsightsOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
winrt::hstring SurroundingText();

void SurroundingText(winrt::hstring value);
public string SurroundingText { get; set; }
public string SurroundingText { [Windows.Foundation.Metadata.Deprecated("CortanaActionableInsightsOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("CortanaActionableInsightsOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")] set; }
var string = cortanaActionableInsightsOptions.surroundingText;
cortanaActionableInsightsOptions.surroundingText = string;
Public Property SurroundingText As String

Valor da propriedade

String

Platform::String

winrt::hstring

O contexto textual em torno do conteúdo (comprimento máximo de 3.000 caracteres). Esse valor pode ser nulo.

Atributos

Requisitos do Windows

Funcionalidades do aplicativo
cortanaSurface

Comentários

Se o setter for chamado com uma cadeia de caracteres excedendo o comprimento máximo, uma exceção será gerada.

A classe CortanaActionableInsights requer que o seguinte seja adicionado ao Package.appxmanifest:

  • Para Empacotar <>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • Em <Recursos>
    • <rescap:capability name="cortanaSurface"/>

Aplica-se a