AllowForWebAttribute Clase

Definición

Permite a los desarrolladores exponer un objeto de Windows Runtime nativo como parámetro global en el contexto del documento de nivel superior dentro de una webView. Para que se proyectará un objeto de Windows Runtime, debe implementar IAgileObject y estar decorado con el atributo AllowForWebAttribute.

public ref class AllowForWebAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class AllowForWebAttribute final : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.AttributeName("allowforweb")]
class AllowForWebAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class AllowForWebAttribute : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.AttributeName("allowforweb")]
public sealed class AllowForWebAttribute : Attribute
function AllowForWebAttribute()
Public NotInheritable Class AllowForWebAttribute
Inherits Attribute
Herencia
AllowForWebAttribute
Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10 (se introdujo en la versión 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (se introdujo en la versión v1.0)

Constructores

AllowForWebAttribute()

Crea e inicializa una nueva instancia del atributo .

Se aplica a

Consulte también