C# Класс Opc.Ua.RelativePathFormatter

A class that stores a relative path string
Наследование: IFormattable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
IsEmpty ( RelativePathFormatter relativePath ) : bool

Returns true if the relative path does not specify any elements.

Parse ( string textToParse ) : RelativePathFormatter

Parses a string representing a relative path.

Parses a string representing a relative path.

Parse ( string textToParse, Opc.Ua.NamespaceTable currentTable, Opc.Ua.NamespaceTable targetTable ) : RelativePathFormatter

Parses a string representing a relative path and translates the namespace indexes.

Parses a string representing a relative path.

RelativePathFormatter ( ) : System

Initializes the object the default values.

RelativePathFormatter ( RelativePath relativePath, ITypeTable typeTree ) : System

Initializes the object the default values.

ToString ( ) : string

Formats the relative path as a string.

Formats the relative path as a string.

ToString ( string format, IFormatProvider formatProvider ) : string

Formats the relative path as a string.

Formats the relative path as a string.

TranslateNamespaceIndexes ( Opc.Ua.NamespaceTable currentTable, Opc.Ua.NamespaceTable targetTable ) : void

Updates the path to use the indexes from the target table.

UpdateNamespaceTable ( Opc.Ua.NamespaceTable currentTable, Opc.Ua.NamespaceTable targetTable ) : void

Updates the namespace table with URI used in the relative path.

Описание методов

IsEmpty() публичный статический Метод

Returns true if the relative path does not specify any elements.
public static IsEmpty ( RelativePathFormatter relativePath ) : bool
relativePath RelativePathFormatter
Результат bool

Parse() публичный статический Метод

Parses a string representing a relative path.
Parses a string representing a relative path.
Thrown if any errors occur during parsing
public static Parse ( string textToParse ) : RelativePathFormatter
textToParse string
Результат RelativePathFormatter

Parse() публичный статический Метод

Parses a string representing a relative path and translates the namespace indexes.
Parses a string representing a relative path.
Thrown if any errors occur during parsing
public static Parse ( string textToParse, Opc.Ua.NamespaceTable currentTable, Opc.Ua.NamespaceTable targetTable ) : RelativePathFormatter
textToParse string
currentTable Opc.Ua.NamespaceTable
targetTable Opc.Ua.NamespaceTable
Результат RelativePathFormatter

RelativePathFormatter() публичный Метод

Initializes the object the default values.
public RelativePathFormatter ( ) : System
Результат System

RelativePathFormatter() публичный Метод

Initializes the object the default values.
public RelativePathFormatter ( RelativePath relativePath, ITypeTable typeTree ) : System
relativePath RelativePath
typeTree ITypeTable
Результат System

ToString() публичный Метод

Formats the relative path as a string.
Formats the relative path as a string.
public ToString ( ) : string
Результат string

ToString() публичный Метод

Formats the relative path as a string.
Formats the relative path as a string.
Thrown if non-null parameters are passed
public ToString ( string format, IFormatProvider formatProvider ) : string
format string (Unused) Always pass null
formatProvider IFormatProvider (Unused) Always pass null
Результат string

TranslateNamespaceIndexes() публичный Метод

Updates the path to use the indexes from the target table.
public TranslateNamespaceIndexes ( Opc.Ua.NamespaceTable currentTable, Opc.Ua.NamespaceTable targetTable ) : void
currentTable Opc.Ua.NamespaceTable The NamespaceTable which the RelativePathString currently references
targetTable Opc.Ua.NamespaceTable The NamespaceTable which the RelativePathString should reference
Результат void

UpdateNamespaceTable() публичный Метод

Updates the namespace table with URI used in the relative path.
public UpdateNamespaceTable ( Opc.Ua.NamespaceTable currentTable, Opc.Ua.NamespaceTable targetTable ) : void
currentTable Opc.Ua.NamespaceTable The current table.
targetTable Opc.Ua.NamespaceTable The target table.
Результат void