AllowForWebAttribute クラス

定義

開発者は、WebView 内のトップレベル ドキュメントのコンテキストで、ネイティブ Windows ランタイム オブジェクトをグローバル パラメーターとして公開できます。 Windows ランタイム オブジェクトを投影するには、IAgileObject を実装し、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
継承
AllowForWebAttribute
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.FoundationContract (v1.0 で導入)

コンストラクター

AllowForWebAttribute()

属性の新しいインスタンスを作成して初期化します。

適用対象

こちらもご覧ください