C# Класс Rock.Utility.SettingsStringBase

A base class that provides common functions to create or parse versioned settings strings used by various Rock components.
Показать файл Открыть проект

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

Метод Описание
FromSelectionString ( string selectionString, string delimiter = SettingsDelimiter ) : void

Set values from a string representation of the settings.

ToSelectionString ( ) : string

Gets a string representation of the settings.

ToString ( ) : string

Returns a System.String that represents this instance.

Защищенные методы

Метод Описание
OnGetParameters ( ) : IEnumerable

Gets an ordered set of property values that can be used to construct the settings string.

OnSetParameters ( int version, IReadOnlyList parameters ) : void

Set the property values parsed from a settings string.

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

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

Set values from a string representation of the settings.
public FromSelectionString ( string selectionString, string delimiter = SettingsDelimiter ) : void
selectionString string A delimited string representing the settings.
delimiter string The delimiter used to separate the setting values.
Результат void

OnGetParameters() защищенный абстрактный Метод

Gets an ordered set of property values that can be used to construct the settings string.
protected abstract OnGetParameters ( ) : IEnumerable
Результат IEnumerable

OnSetParameters() защищенный абстрактный Метод

Set the property values parsed from a settings string.
protected abstract OnSetParameters ( int version, IReadOnlyList parameters ) : void
version int The version number of the parameter set.
parameters IReadOnlyList An ordered collection of strings representing the parameter values.
Результат void

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

Gets a string representation of the settings.
public ToSelectionString ( ) : string
Результат string

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

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string