C# Класс VVVV.Packs.Messaging.MessageFormularRegistry

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
Data List>.Dictionary

Открытые методы

Метод Описание
Define ( string definerId, MessageFormular formular, bool supressEvent = false ) : bool

Tries to define a Formular. Each named Formular can only be defined by one sender entity

Setting the supressEvent parameter to true will prevent this method to inform any TypeChanged subscribers.

GetFormularsFrom ( string definerId ) : IEnumerable

Retrieve all currently defined Formulars of a specific sender entity

Undefine ( string definerId, MessageFormular formular ) : bool

Unregisters a specific Formular from a specific definer source

UndefineAll ( string definerId ) : bool

Unregisters all Formulars from a specific definer source

this ( string formularName ) : MessageFormular

Retrieve the currently defined Formular by name, regardless of the Definer

Приватные методы

Метод Описание
MessageFormularRegistry ( ) : System

Описание методов

Define() публичный Метод

Tries to define a Formular. Each named Formular can only be defined by one sender entity
Setting the supressEvent parameter to true will prevent this method to inform any TypeChanged subscribers.
Thrown when the Formular is null. This exception is thrown if a syntax error prevents the config to be parsed.
public Define ( string definerId, MessageFormular formular, bool supressEvent = false ) : bool
definerId string A unique string that helps to keep track, who registered a given Formular.
formular MessageFormular A MessageFormular to be registered.
supressEvent bool A bool indicating if the registry should skip informing interested parties about this change.
Результат bool

GetFormularsFrom() публичный Метод

Retrieve all currently defined Formulars of a specific sender entity
public GetFormularsFrom ( string definerId ) : IEnumerable
definerId string
Результат IEnumerable

Undefine() публичный Метод

Unregisters a specific Formular from a specific definer source
public Undefine ( string definerId, MessageFormular formular ) : bool
definerId string
formular MessageFormular
Результат bool

UndefineAll() публичный Метод

Unregisters all Formulars from a specific definer source
public UndefineAll ( string definerId ) : bool
definerId string
Результат bool

this() публичный Метод

Retrieve the currently defined Formular by name, regardless of the Definer
public this ( string formularName ) : MessageFormular
formularName string
Результат MessageFormular

Описание свойств

Data защищенное свойство

protected Dictionary> Data
Результат List>.Dictionary