JSInvokableAttribute クラス

定義

JavaScript コードからの呼び出しを許可する .NET メソッドを識別します。 この属性でマークされたメソッドは、信頼されていない呼び出し元から任意のパラメーター値を受け取る可能性があります。 すべての入力は慎重に検証する必要があります。

public ref class JSInvokableAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class JSInvokableAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type JSInvokableAttribute = class
    inherit Attribute
Public NotInheritable Class JSInvokableAttribute
Inherits Attribute
継承
JSInvokableAttribute
属性

コンストラクター

JSInvokableAttribute()

メソッドの識別子を設定せずに の JSInvokableAttribute インスタンスを構築します。

JSInvokableAttribute(String)

指定した識別子を使用して の JSInvokableAttribute インスタンスを構築します。

プロパティ

Identifier

メソッドの識別子を取得します。 識別子は、アセンブリのスコープ内で一意である必要があります。

設定されていない場合、識別子は メソッドの名前から取得されます。 この場合、メソッド名はアセンブリ内で一意である必要があります。

適用対象