IdlMemberAttribute Class

Indicates that a member maps a WebIDL member (attribute, operation, constructor, constant, getter/setter or enum value). A member can map several WebIDL members, for instance an indexer that implements both an indexed and a named getter.

[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event, AllowMultiple = true, Inherited = false)]
public sealed class IdlMemberAttribute : Attribute
Inheritance
Attribute IdlMemberAttribute

Constructors

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

IdlMemberAttribute(string, string)

IdlMemberAttribute.cs

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

public IdlMemberAttribute(string name, string specUrl)

Parameters

name string
specUrl string

Properties

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

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

public string Name { get; }

Property value

string

Gets the URL of the member in the specification.

public string SpecUrl { get; }

Property value

string