Udostępnij za pośrednictwem


AllowForWebAttribute Class

Definition

Enables developers to expose a native Windows Runtime object as a global parameter in the context of the top-level document inside of a WebView. For a Windows Runtime object to be projected, it must implement IAgileObject and be decorated with the AllowForWebAttribute attribute.

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
Inheritance
AllowForWebAttribute
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced in v1.0)

Constructors

AllowForWebAttribute()

Creates and initializes a new instance of the attribute.

Applies to

See also