C# Класс Unicorn.PresetExtensions

Extension methods on Serialization Preset API classes to make checks easier
Показать файл Открыть проект

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

Метод Описание
Includes ( this entry, System.Item item ) : bool

Checks if a preset includes a given item

Includes ( this entries, System.Item item ) : bool

Checks if a list of presets includes a given item

MatchesId ( this entries, string id ) : bool

Checks if a given list of presets matches a specific item ID. Use ID.ToString() format eg {A9F4...}

MatchesPath ( this entries, string path ) : bool

Checks if a given list of presets matches a specific Sitecore path

MatchesTemplate ( this entries, string templateName ) : bool

Checks if a given list of presets matches a specific template name

MatchesTemplateId ( this entries, string templateId ) : bool

Checks if a given list of presets matches a specific template ID

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

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

Checks if a preset includes a given item
public static Includes ( this entry, System.Item item ) : bool
entry this
item System.Item
Результат bool

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

Checks if a list of presets includes a given item
public static Includes ( this entries, System.Item item ) : bool
entries this
item System.Item
Результат bool

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

Checks if a given list of presets matches a specific item ID. Use ID.ToString() format eg {A9F4...}
public static MatchesId ( this entries, string id ) : bool
entries this
id string
Результат bool

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

Checks if a given list of presets matches a specific Sitecore path
public static MatchesPath ( this entries, string path ) : bool
entries this
path string
Результат bool

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

Checks if a given list of presets matches a specific template name
public static MatchesTemplate ( this entries, string templateName ) : bool
entries this
templateName string
Результат bool

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

Checks if a given list of presets matches a specific template ID
public static MatchesTemplateId ( this entries, string templateId ) : bool
entries this
templateId string
Результат bool