ActionMessageFilter(String[]) Konstruktor
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Inicializuje novou instanci této třídy se sadou akcí, pro které testuje.
public:
ActionMessageFilter(... cli::array <System::String ^> ^ actions);
public ActionMessageFilter (params string[] actions);
new System.ServiceModel.Dispatcher.ActionMessageFilter : string[] -> System.ServiceModel.Dispatcher.ActionMessageFilter
Public Sub New (ParamArray actions As String())
Parametry
Výjimky
actions
je null
.
Pole actions
je prázdné.
Příklady
ActionMessageFilter myActFltr = new ActionMessageFilter("1st Action", "2nd Action");
Dim myActFltr As ActionMessageFilter = New ActionMessageFilter("1st Action", "2nd Action")
Poznámky
Pokud pole actions
poskytnuté k naplnění ActionMessageFilter obsahuje duplicitní akce, jsou duplicitní položky odebrány a do souboru ActionMessageFilterse přidá pouze jedna z nich . Vlastnost ReadOnlyCollection<T> je obsažena Actions v ActionMessageFilter souboru a po vytvoření instance objektu nelze změnitActionMessageFilter.actions