Sdílet prostřednictvím


ActionMessageFilter(String[]) Konstruktor

Definice

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

actions
String[]

Obsahuje Array sadu akcí, pro které filtr testuje.

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

Platí pro