Struct XFeatureFlagName
Structure representing a XML XName that tracks and demangles any Feature Forked Subtree (FFS) information.
Inherited Members
Namespace: Tableau.Migration.Content.Files.Xml
Assembly: Tableau.Migration.dll
Syntax
public struct XFeatureFlagName
Properties
FeatureFlagEnabled
Gets whether the feature flag is enabled or disabled for this element/attribute. Will be false for simple/unmangled names.
Declaration
public readonly bool FeatureFlagEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
FeatureFlagName
Gets the name of the feature flag used in FFS mangling. Will be an empty string for simple/unmangled names.
Declaration
public readonly string FeatureFlagName { get; }
Property Value
Type | Description |
---|---|
string |
FullName
Gets the full XName, including with any FFS mangling still intact.
Declaration
public readonly XName FullName { get; }
Property Value
Type | Description |
---|---|
XName |
HasFeatureFlag
Gets whether or not the name has a feature flag component. Will be false for simple/unmangled names.
Declaration
public readonly bool HasFeatureFlag { get; }
Property Value
Type | Description |
---|---|
bool |
Name
Gets the unmangled element/attribute name without FFS prefix information. Will equal FullName for simple/unmangled names.
Declaration
public readonly string Name { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override readonly bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Parse(XName)
Creates a XFeatureFlagName from an XML XName, which can optionally be mangled with FFS information.
Declaration
public static XFeatureFlagName Parse(XName xmlName)
Parameters
Type | Name | Description |
---|---|---|
XName | xmlName | The name to parse. |
Returns
Type | Description |
---|---|
XFeatureFlagName | The created XFeatureFlagName. |
Operators
operator ==(XFeatureFlagName, XFeatureFlagName)
Declaration
public static bool operator ==(XFeatureFlagName left, XFeatureFlagName right)
Parameters
Type | Name | Description |
---|---|---|
XFeatureFlagName | left | |
XFeatureFlagName | right |
Returns
Type | Description |
---|---|
bool |
operator !=(XFeatureFlagName, XFeatureFlagName)
Declaration
public static bool operator !=(XFeatureFlagName left, XFeatureFlagName right)
Parameters
Type | Name | Description |
---|---|---|
XFeatureFlagName | left | |
XFeatureFlagName | right |
Returns
Type | Description |
---|---|
bool |