Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AllowForWebAttribute Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

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

Constructors

Name Description
AllowForWebAttribute()

Creates and initializes a new instance of the attribute.

Applies to

See also


Feedback

Was this page helpful?