Class XlfFile.Optionals
- Namespace
- SunamoXliffParser
- Assembly
- SunamoXliffParser.dll
Provides access to optional attributes of a file element.
public class XlfFile.Optionals
- Inheritance
-
XlfFile.Optionals
- Inherited Members
- Extension Methods
Constructors
Optionals(XElement)
Initializes a new instance of the XlfFile.Optionals class.
public Optionals(XElement node)
Parameters
nodeXElementThe XML element containing optional attributes.
Properties
BuildNum
Gets or sets the build number.
public string BuildNum { get; set; }
Property Value
ProductName
Gets or sets the product name.
public string ProductName { get; set; }
Property Value
ProductVersion
Gets or sets the product version.
public string ProductVersion { get; set; }
Property Value
TargetLang
Gets or sets the target language code.
public string TargetLang { get; set; }
Property Value
ToolId
Gets or sets the tool identifier.
public string ToolId { get; set; }
Property Value
Methods
GetAttributeIfExists(string)
Gets the value of the specified attribute if it exists on the file element.
public string GetAttributeIfExists(string name)
Parameters
namestringThe name of the attribute to retrieve.
Returns
- string
The attribute value, or an empty string if the attribute does not exist.