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()

특성의 새 인스턴스를 만들고 초기화합니다.

적용 대상

추가 정보