C# Класс pGina.Plugin.UsernameMod.Rules.ListOfRules

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Rules string[]

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

Метод Описание
Add ( IUsernameRule rule ) : void

Adds a rule to the list, putting it at the end of the stage

CreateRule ( Stage stage, string action, string val1, string val2 ) : IUsernameRule

Creates an IUsernameRule based on the Stage value, and string representation of the rule

CreateRule ( string stage, string action, string val1, string val2 ) : IUsernameRule

Creates a IUsernameRule based on the string representation of the stage, action, and values.

ListOfRules ( ) : System
Load ( ) : void

Loads the rules from the register into list.

MoveDown ( int index ) : bool

Moves the rule at the specified index down one (e.g. index=2 becomes index=3). Will not move an item if it's at the bottom, or if it will be below a rule with a later step. (e.g. An authorization rule will not move below a gateway rule)

MoveUp ( int index ) : bool

Moves the rule at the specified index up one (e.g. index=2 becomes index=1). Will not move an item if it's at the top, or if it will be above a rule with an earlier step. (e.g. A gateway rule can not be above a authorization rule)

Save ( ) : void

Saves the list of rules to the registry.

remove ( int index ) : void

Removes the rule at the specified index.

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

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

Adds a rule to the list, putting it at the end of the stage
public Add ( IUsernameRule rule ) : void
rule IUsernameRule
Результат void

CreateRule() публичный статический Метод

Creates an IUsernameRule based on the Stage value, and string representation of the rule
public static CreateRule ( Stage stage, string action, string val1, string val2 ) : IUsernameRule
stage Stage
action string
val1 string
val2 string
Результат IUsernameRule

CreateRule() публичный статический Метод

Creates a IUsernameRule based on the string representation of the stage, action, and values.
public static CreateRule ( string stage, string action, string val1, string val2 ) : IUsernameRule
stage string
action string
val1 string
val2 string
Результат IUsernameRule

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

public ListOfRules ( ) : System
Результат System

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

Loads the rules from the register into list.
public Load ( ) : void
Результат void

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

Moves the rule at the specified index down one (e.g. index=2 becomes index=3). Will not move an item if it's at the bottom, or if it will be below a rule with a later step. (e.g. An authorization rule will not move below a gateway rule)
public MoveDown ( int index ) : bool
index int
Результат bool

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

Moves the rule at the specified index up one (e.g. index=2 becomes index=1). Will not move an item if it's at the top, or if it will be above a rule with an earlier step. (e.g. A gateway rule can not be above a authorization rule)
public MoveUp ( int index ) : bool
index int
Результат bool

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

Saves the list of rules to the registry.
public Save ( ) : void
Результат void

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

Removes the rule at the specified index.
public remove ( int index ) : void
index int
Результат void

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

Rules публичное статическое свойство

public static string[] Rules
Результат string[]