Dependent class | QSYS API Reference Guide

Estimated reading time: 3 minutes

The Dependent class represents a dependency in the ASNA DataGate environment.

Namespace: ASNA.DataGate.Client Assembly: ASNA.QSys.DataGate.Client.dll

Inheritance: Object

Thread Safety

Any public static (Shared) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Remarks

This class implements the IEquatable<Dependent> interface, allowing instances of Dependent to be compared for equality based on their properties. /// A Dependent instance represents a specific ASNA DataGate object (such as a file or a data area) that a program depends on. Each Dependent has an AdgObjectType indicating the type of the ASNA DataGate object it represents, a DependentType indicating the type of the dependency, and a PathName representing the path name of the ASNA DataGate object.



Properties

Type Name Description
AdgObjectTypes AdgObjectType Gets the type of the ASNA DataGate object that this dependent represents.
DependentTypes DependentType Gets the type of the dependency that this instance represents.
String PathName Gets the path name of the ASNA DataGate object that this dependent represents.

Methods

Signature Description
Equals(Dependent) Determines whether the specified is equal to the current .
Equals(Object) Determines whether the specified object is equal to the current .
GetHashCode() Serves as the default hash function.
ToString() Returns a string that represents the current object.

bool Equals(Dependent other)

Determines whether the specified is equal to the current .

Remarks

This method checks if the provided is not null and if its , , and properties are equal to those of the current instance.The comparison of is case-insensitive.

bool Equals(Dependent other)

Parameters

Type Parameter name Description
Dependent other The to compare with the current .

Returns

Type Description
Boolean true if the specified is equal to the current ; otherwise, false.

bool Equals(object obj)

Determines whether the specified object is equal to the current .

Remarks

This method overrides the method.It casts the provided object to a and calls the method to perform the comparison.If the cast is unsuccessful (i.e., if the object is not a ), the method returns false.

bool Equals(object obj)

Parameters

Type Parameter name Description
Object obj The object to compare with the current .

Returns

Type Description
Boolean true if the specified object is a and is equal to the current ; otherwise, false.

int GetHashCode()

Serves as the default hash function.

Remarks

This method overrides the method.It calculates the hash code for the current instance based on the , , and properties.The hash code for is calculated using a case-insensitive method.This hash code will be used when the instance is used in a hash-based collection, like a hash set or a dictionary.

int GetHashCode()

string ToString()

Returns a string that represents the current object.

Remarks

This method overrides the method and returns the property of the current instance.This provides a string representation of the dependent that is the path name of the ASNA DataGate object it represents.

string ToString()