1. Stylelabs.M.Framework.Essentials.LoadOptions

Class PropertyLoadOption

Specifies which properties to load.

Inheritance

object

PropertyLoadOption

Implements

IPropertyLoadOption

ILoadOption

Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadOptions

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class PropertyLoadOption : IPropertyLoadOption, ILoadOption

Constructors

PropertyLoadOption()

Initializes a new instance of the PropertyLoadOption class. Defaults to LoadOption.None .

Declaration

public PropertyLoadOption()

PropertyLoadOption(IEnumerable)

Initializes a new instance of the PropertyLoadOption class.

Declaration

public PropertyLoadOption(IEnumerable<string> propertyNames)

Parameters

TypeNameDescription
IEnumerable<>stringpropertyNamesProperty names.

PropertyLoadOption(LoadOption)

Initializes a new instance of the PropertyLoadOption class.

Declaration

public PropertyLoadOption(LoadOption loadOption)

Parameters

TypeNameDescription
LoadOptionloadOptionA LoadOption.

PropertyLoadOption(params string[])

Initializes a new instance of the PropertyLoadOption class.

Declaration

public PropertyLoadOption(params string[] propertyNames)

Parameters

TypeNameDescription
stringpropertyNamesProperty names.

Properties

All

Gets all properties.

Declaration

public static IPropertyLoadOption All { get; }

Property Value

TypeDescription
IPropertyLoadOption

Gets or sets the load option.

Declaration

public LoadOption LoadOption { get; set; }

Property Value

TypeDescription
LoadOption

None

Gets no properties.

Declaration

public static IPropertyLoadOption None { get; }

Property Value

TypeDescription
IPropertyLoadOption

Properties

Gets or sets a list of property names (case insensitive) that need to be loaded. This is only useful when LoadOption is Custom.

Declaration

public string[] Properties { get; set; }

Property Value

TypeDescription
string

Methods

DeepClone()

Creates a deep clone of this instance.

Declaration

public IPropertyLoadOption DeepClone()

Returns

TypeDescription
IPropertyLoadOptionThe property load option.

DeepEquals(IPropertyLoadOption)

Checks if this instance of IPropertyLoadOption is equal to other.

Declaration

public bool DeepEquals(IPropertyLoadOption other)

Parameters

TypeNameDescription
IPropertyLoadOptionotherThe property load option.

Returns

TypeDescription
boollangword_csharp_True if the instances are equal; otherwise langword_csharp_False.

Implements

IPropertyLoadOption

ILoadOption

If you have suggestions for improving this article, let us know!