Table of Contents

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

node XElement

The XML element containing optional attributes.

Properties

BuildNum

Gets or sets the build number.

public string BuildNum { get; set; }

Property Value

string

ProductName

Gets or sets the product name.

public string ProductName { get; set; }

Property Value

string

ProductVersion

Gets or sets the product version.

public string ProductVersion { get; set; }

Property Value

string

TargetLang

Gets or sets the target language code.

public string TargetLang { get; set; }

Property Value

string

ToolId

Gets or sets the tool identifier.

public string ToolId { get; set; }

Property Value

string

Methods

GetAttributeIfExists(string)

Gets the value of the specified attribute if it exists on the file element.

public string GetAttributeIfExists(string name)

Parameters

name string

The name of the attribute to retrieve.

Returns

string

The attribute value, or an empty string if the attribute does not exist.