Class MPartition
- Inheritance
-
MPartition
- Implements
-
- Inherited Members
-
- Namespace
- TabularEditor.TOMWrapper
- Assembly
- TOMWrapper.dll
public class MPartition : Partition, ICustomTypeDescriptor, INotifyPropertyChanging, IComparable, ITomErrorMessageObject, ITabularTableObject, IDescriptionObject, IAnnotationObject, IExtendedPropertyObject, IClonableObject, IDaxDependantObject, IExpressionObject, ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject
- Extension Methods
-
Properties
Attributes
Gets or sets the M attributes.
public string Attributes { get; set; }
Property Value
DefaultExpressionProperty
Gets the default expression property on the current object.
public override ExpressionProperty? DefaultExpressionProperty { get; }
Property Value
MExpression
The Power Query (M) Expression used to populate the partition with data.
public string MExpression { get; set; }
Property Value
Methods
Clone(string, Table)
Creates a copy of this parittion
public override Partition Clone(string newName = null, Table newParent = null)
Parameters
Returns
Exceptions
- InvalidOperationException
CreateNew(Table, string)
public static MPartition CreateNew(Table parent, string name = null)
Parameters
Returns
GetExpression(ExpressionProperty)
Gets the specified expression from the current object.
public override string GetExpression(ExpressionProperty expressionProperty)
Parameters
Returns
Exceptions
- InvalidEnumArgumentException
Thrown when the current object does not support the specified ExpressionProperty
GetExpressionProperties()
Gets all supported expression properties on the current object.
public override IEnumerable<ExpressionProperty> GetExpressionProperties()
Returns
Init()
Derived members should override this method to instantiate child objects
protected override void Init()
SetExpression(ExpressionProperty, string)
Sets the specified expression on the current object.
public override void SetExpression(ExpressionProperty expressionProperty, string expression)
Parameters
Exceptions
- InvalidEnumArgumentException
Thrown when the current object does not support the specified ExpressionProperty