Class TechnologyLimitation
Describes a limitation that a technology has encountered.
[TypeConverter(typeof(ExpandableObjectConverter))]
public sealed class TechnologyLimitation
- Inheritance
-
TechnologyLimitation
- Inherited Members
Properties
LogToReport
Gets a value indicating whether this technology limitation should be logged to the Report.
public TechnologyLimitation.LogToReportOption LogToReport { get; }
Property Value
Message
Gets a message describing the limitation.
public string Message { get; }
Property Value
Name
Gets the unique identifier for the limitation.
public string Name { get; }
Property Value
Technology
Gets the technology that encountered the limitation.
public string Technology { get; }
Property Value
WizardPageName
Gets the name of the wizard page to use.
public string WizardPageName { get; }
Property Value
- string
The name of the wizard page.
WizardProperties
Gets the wizard properties.
public IDictionary<string, string> WizardProperties { get; }
Property Value
Methods
Build(string, string, string)
Creates a new builder instance with all mandatory fields.
public static TechnologyLimitation.Builder Build(string id, string technology, string message)
Parameters
idstringA unique identifier for the limitation.
technologystringThe technology that encountered the limitation.
messagestringA message that describes the limitation.
Returns
- TechnologyLimitation.Builder
Builder.
Examples
var baseBuilder = TechnologyLimitation.Build("sometech-someuniqueid", "sometech", "It did not work.");
var error1 = baseBuilder.ProcessInfo("SomeTechProcess", pid).Create();
var error2 = baseBuilder.HelpUrl("/foo/bar").ProcessInfo("OtherProcess", pid2).Create();
// ...
Equals(object)
Returns whether this instance is equal to obj.
public override bool Equals(object obj)
Parameters
objobjectAnother instance.
Returns
- bool
Trueifobjis a TechnologyLimitation instance and is equal to this instance.
Remarks
Two TechnologyLimitation instances are considered equal if their Names are equal.
GetFirstNonIgnoredLimitation(Element)
Gets the first non-ignored limitation that applies to element
or to one of its ancestors.
public static TechnologyLimitation GetFirstNonIgnoredLimitation(Element element)
Parameters
elementElementThe element to get the limitation from.
Returns
- TechnologyLimitation
A non-ignored limitation or
nullif no limitation applies to the passedelementor to one of its parents.
GetHashCode()
Gets a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code.