JSInvokableAttribute 클래스

정의

.NET 메서드를 JavaScript 코드에서 호출을 허용하는 것으로 식별합니다. 이 특성으로 표시된 메서드는 신뢰할 수 없는 호출자로부터 임의의 매개 변수 값을 받을 수 있습니다. 모든 입력의 유효성을 신중하게 검사해야 합니다.

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 instance 생성합니다.

JSInvokableAttribute(String)

지정된 식별자를 사용하여 의 JSInvokableAttribute instance 생성합니다.

속성

Identifier

메서드의 식별자를 가져옵니다. 식별자는 어셈블리의 scope 내에서 고유해야 합니다.

설정하지 않으면 식별자가 메서드의 이름에서 가져옵니다. 이 경우 메서드 이름은 어셈블리 내에서 고유해야 합니다.

적용 대상