IdlInterfaceAttribute Class

Indicates that a type maps a WebIDL definition (interface, interface mixin, dictionary, enum, callback or typedef).

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
public sealed class IdlInterfaceAttribute : Attribute
Inheritance
Attribute IdlInterfaceAttribute

Constructors

NameDescription
IdlInterfaceAttribute(string, string)Creates an attribute with the WebIDL name of the definition and the URL of its specification.

IdlInterfaceAttribute(string, string)

IdlInterfaceAttribute.cs

Creates an attribute with the WebIDL name of the definition and the URL of its specification.

public IdlInterfaceAttribute(string name, string specUrl)

Parameters

name string
specUrl string

Properties

NameDescription
NameGets the name of the definition exactly as written in the WebIDL.
SpecUrlGets the URL of the definition in the specification.

Gets the name of the definition exactly as written in the WebIDL.

public string Name { get; }

Property value

string

Gets the URL of the definition in the specification.

public string SpecUrl { get; }

Property value

string