Class PropertyLoadOption

Specifies which properties to load.

Inheritance
object
PropertyLoadOption
Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadOptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class PropertyLoadOption : IPropertyLoadOption, ILoadOption

Constructors

PropertyLoadOption()

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

Declaration
RequestResponse
public PropertyLoadOption()

PropertyLoadOption(IEnumerable<string>)

Initializes a new instance of the PropertyLoadOption class.

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

Property names.

PropertyLoadOption(LoadOption)

Initializes a new instance of the PropertyLoadOption class.

Declaration
RequestResponse
public PropertyLoadOption(LoadOption loadOption)
Parameters
TypeNameDescription
LoadOptionloadOption

A LoadOption.

PropertyLoadOption(params string[])

Initializes a new instance of the PropertyLoadOption class.

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

Property names.

Properties

All

Gets all properties.

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

LoadOption

Gets or sets the load option.

Declaration
RequestResponse
public LoadOption LoadOption { get; set; }
Property Value
TypeDescription
LoadOption

None

Gets no properties.

Declaration
RequestResponse
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
RequestResponse
public string[] Properties { get; set; }
Property Value
TypeDescription
string

Methods

DeepClone()

Creates a deep clone of this instance.

Declaration
RequestResponse
public IPropertyLoadOption DeepClone()
Returns
TypeDescription
IPropertyLoadOption

The property load option.

DeepEquals(IPropertyLoadOption)

Checks if this instance of IPropertyLoadOption is equal to other.

Declaration
RequestResponse
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

Do you have some feedback for us?

If you have suggestions for improving this article,