C# Class Opc.Ua.RelativePathFormatter

A class that stores a relative path string
Inheritance: IFormattable
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

IsEmpty() public static méthode

Returns true if the relative path does not specify any elements.
public static IsEmpty ( RelativePathFormatter relativePath ) : bool
relativePath RelativePathFormatter
Résultat bool

Parse() public static méthode

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
Résultat RelativePathFormatter

Parse() public static méthode

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
Résultat RelativePathFormatter

RelativePathFormatter() public méthode

Initializes the object the default values.
public RelativePathFormatter ( ) : System
Résultat System

RelativePathFormatter() public méthode

Initializes the object the default values.
public RelativePathFormatter ( RelativePath relativePath, ITypeTable typeTree ) : System
relativePath RelativePath
typeTree ITypeTable
Résultat System

ToString() public méthode

Formats the relative path as a string.
Formats the relative path as a string.
public ToString ( ) : string
Résultat string

ToString() public méthode

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
Résultat string

TranslateNamespaceIndexes() public méthode

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
Résultat void

UpdateNamespaceTable() public méthode

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.
Résultat void