The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ModelVariantsProvider Members

Provide a list of view variants available for the specific View in the IModelVariants Application Model node, and stores the variant selected by the user to the IModelVariants.Current property.

Constructors

Name Description
ModelVariantsProvider(IModelApplication)

Initializes a new instance of the ModelVariantsProvider class.

ModelVariantsProvider(IModelList<IModelView>)

Initializes a new instance of the ModelVariantsProvider class.

Properties

Name Description
AllowSingleVariant static

Specifies whether of not a single view variant is allowed.

GenerateDefaultVariant static

Obsolete. This property is obsolete. Instead, use the approach demonstrated in the How to: Create Additional ListView Nodes in Code using a Generator Updater topic to create a default View Variant.

Views

Gets the list of View nodes used by the ModelVariantsProvider.

Methods

Name Description
Equals(Object) Determines whether the specified object is equal to the current object.
(Inherited from Object)
Equals(Object, Object) static Determines whether the specified object instances are considered equal.
(Inherited from Object)
GetHashCode() Serves as the default hash function.
(Inherited from Object)
GetType() Gets the Type of the current instance.
(Inherited from Object)
GetVariants(String)

Returns a set of view variants available for the specific root View in the IModelVariants Application Model node. In case there are no view variants, returns null (Nothing in VB).

MemberwiseClone() Creates a shallow copy of the current Object.
(Inherited from Object)
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance.
(Inherited from Object)
SaveCurrentVariantId(String, String)

Saves the identifier of the currently selected View variant to the IModelVariants.Current property in the Application Model.

ToString() Returns a string that represents the current object.
(Inherited from Object)
See Also