1. PropertyLoadOption

Class PropertyLoadOption

Specifies which properties to load.

Inheritance
object
PropertyLoadOption
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 .

Declaration
public PropertyLoadOption()

PropertyLoadOption(IEnumerable<string>)

Initializes a new instance of the PropertyLoadOption class.

Declaration
public PropertyLoadOption(IEnumerable<string> propertyNames)
Parameters
TypeNameDescription
IEnumerable<>stringpropertyNames

Property names.

PropertyLoadOption(LoadOption)

Initializes a new instance of the PropertyLoadOption class.

Declaration
public PropertyLoadOption(LoadOption loadOption)
Parameters
TypeNameDescription
LoadOptionloadOption

A LoadOption.

PropertyLoadOption(params string[])

Initializes a new instance of the PropertyLoadOption class.

Declaration
public PropertyLoadOption(params string[] propertyNames)
Parameters
TypeNameDescription
stringpropertyNames

Property names.

Properties

All

Gets all properties.

Declaration
public static IPropertyLoadOption All { get; }
Property Value
TypeDescription
IPropertyLoadOption

LoadOption

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
IPropertyLoadOption

The property load option.

DeepEquals(IPropertyLoadOption)

Checks if this instance of IPropertyLoadOption is equal to other.

Declaration
public bool DeepEquals(IPropertyLoadOption other)
Parameters
TypeNameDescription
IPropertyLoadOptionother

The property load option.

Returns
TypeDescription
bool

langword_csharp_True if the instances are equal; otherwise langword_csharp_False.

Implements

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