C# Class Unicorn.PresetExtensions

Extension methods on Serialization Preset API classes to make checks easier
Datei anzeigen Open project: connectivedx/Unicorn

Public Methods

Method Description
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

Method Details

Includes() public static method

Checks if a preset includes a given item
public static Includes ( this entry, System.Item item ) : bool
entry this
item System.Item
return bool

Includes() public static method

Checks if a list of presets includes a given item
public static Includes ( this entries, System.Item item ) : bool
entries this
item System.Item
return bool

MatchesId() public static method

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
return bool

MatchesPath() public static method

Checks if a given list of presets matches a specific Sitecore path
public static MatchesPath ( this entries, string path ) : bool
entries this
path string
return bool

MatchesTemplate() public static method

Checks if a given list of presets matches a specific template name
public static MatchesTemplate ( this entries, string templateName ) : bool
entries this
templateName string
return bool

MatchesTemplateId() public static method

Checks if a given list of presets matches a specific template ID
public static MatchesTemplateId ( this entries, string templateId ) : bool
entries this
templateId string
return bool