Value Methods

<< 点击显示目录 >>

主页  PVI通信 > PVI帮助信息 > PVI Services > BR.AN.Namespace > BR.AN.PviServices > Value Class >

Value Methods

BR.AN.PviServices .NET


The methods of the Value class are listed below. For a complete list of Value class members, see the Value Members topic.

Public Instance Methods

pubmethodAssign

Overloaded. Initializes the Value class to the Object value

pubmethodBinaryToAnsiString

Call this member to get a string representation of the binary data. This can be used to transform any data on the PLC stored as string in any type of array (e.g. byte array) to a string value. No conversion is done! The function does not care about alignment! The function detects if the binary data is in ANSI or UNICODE format.

pubmethodBinaryToStringUNI

Call this member to get a string representation of the binary data. This can be used to transform any data on the PLC stored as string in any type of array (e.g. byte array) to a string value. No conversion is done! The function does not care about alignment! The function detects if the binary data is in ANSI or UNICODE format.

pubmethodDispose

Implement IDisposable.

pubmethodEquals

Overloaded. Returns a value indicating whether this instance is equal to a specified object.

pubmethodGetHashCode

Returns a hash code for the current Value object

pubmethodGetTypeCode

Returns the TypeCode for this instance.

pubmethodToAnsiString

Formats the value of the current instance using the specified format.

pubmethodToBoolean

Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.

pubmethodToByte

Converts the value of this instance to an equivalent Byte value using the specified culture-specific formatting information.

pubmethodToChar

Converts the value of this instance to an equivalent Char value using the specified culture-specific formatting information.

pubmethodToDateTime

Converts the value of this instance to an equivalent DateTime value using the specified culture-specific formatting information.

pubmethodToDecimal

Converts the value of this instance to an equivalent Decimal value using the specified culture-specific formatting information.

pubmethodToDouble

Converts the value of this instance to an equivalent Double value using the specified culture-specific formatting information.

pubmethodToEnum

Converts the int value to its enum name. If the value is out of range the method will simply return the int value.

pubmethodToIECString

Overloaded. Converts the value of this instance to an equivalent IEC String value

pubmethodToInt16

Converts the value of this instance to an equivalent Int16 value using the specified culture-specific formatting information.

pubmethodToInt32

Converts the value of this instance to an equivalent Int32 value using the specified culture-specific formatting information.

pubmethodToInt64

Converts the value of this instance to an equivalent Int64 value using the specified culture-specific formatting information.

pubmethodToSByte

Converts the value of this instance to an equivalent SByte value using the specified culture-specific formatting information.

pubmethodToSingle

Converts the value of this instance to an equivalent Single value using the specified culture-specific formatting information.

pubmethodToString

Overloaded. Converts the value of this instance to an equivalent String value using the specified culture-specific formatting information.

pubmethodToStringUNI

Formats the value of the current instance using the specified format.

pubmethodToSystemDataTypeValue

Helper function to get a system data type compliant value.

pubmethodToTimeSpan

Converts the value of this instance to an equivalent TimeSpan value using the specified culture-specific formatting information.

pubmethodToType

Converts the value of this instance to an Object of the specified Type that has an equivalent value, using the specified culture-specific formatting information.

pubmethodToUInt16

Converts the value of this instance to an equivalent UInt16 value using the specified culture-specific formatting information.

pubmethodToUInt32

Converts the value of this instance to an equivalent UInt32 value using the specified culture-specific formatting information.

pubmethodToUInt64

Converts the value of this instance to an equivalent UInt64 value using the specified culture-specific formatting information.

See Also

Value Class | BR.AN.PviServices Namespace


Generated from assembly BR.AN.PviServices [8.1.0.4]

Topics in this section:

Value.Assign Method

Value.BinaryToAnsiString Method

Value.BinaryToStringUNI Method

Value.Dispose Method

Value.GetHashCode Method

Value.GetTypeCode Method

Value.ToAnsiString Method

Value.ToBoolean Method

Value.ToByte Method

Value.ToChar Method

Value.ToDateTime Method

Value.ToDecimal Method

Value.ToDouble Method

Value.ToEnum Method

Value.ToIECString Method

Value.ToInt16 Method

Value.ToInt32 Method

Value.ToInt64 Method

Value.ToSByte Method

Value.ToSingle Method

Value.ToString Method

Value.ToStringUNI Method

Value.ToSystemDataTypeValue Method

Value.ToTimeSpan Method

Value.ToType Method

Value.ToUInt16 Method

Value.ToUInt32 Method

Value.ToUInt64 Method