C# Класс Westwind.WebConnection.ComValue

Показать файл Открыть проект

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

Метод Описание
GetGuid ( ) : string

Retrieves a GUID value as a string from the Value structure

GetTypeName ( ) : string

Returns the name of the type in the Value structure

GetValue ( ) : object
NewGuid ( ) : void

Create a new Guid on the Value structure

SetByte ( object value ) : void

Returns a byte value which is similar to Int16.

SetChar ( object val ) : void

Sets a character value from a string or integer

SetDbNull ( ) : void

Allows setting of DbNull from FoxPro since DbNull is an inaccessible value type for FoxPro.

SetDecimal ( object val ) : void

Sets a Decimal value. This can actually be done in FoxPro with CAST(val as Currency)

SetEnum ( string enumValue ) : void

Assigns an enum value to the value structure. This allows to pass enum values to methods and constructors to ensure that method signatures match properly

SetEnumFlag ( string enumType, int enumValue ) : void

Assigns an enum value that is based on a numeric (flag) value or a combination of flag values.

SetFloat ( object val ) : void

Set a float value

SetGuid ( object value ) : void

Sets value to a .NET Guid. Creates a GUID from either ComGuid instance a string, or if null creates a new GUID.

SetInt16 ( object val ) : void

Sets a Short value which is not supported in Visual FoxPro

SetInt64 ( object val ) : void

Sets an Int64 value which is not supported in Visual FoxPro

SetLong ( object val ) : void

Sets a Long (64 bit) integer value

SetSingle ( object val ) : void

Sets a Single Value on the

SetUInt32 ( object val ) : void

Sets an UInt64 value which is not supported in Visual FoxPro

SetUInt64 ( object val ) : void

Sets an UInt64 value which is not supported in Visual FoxPro

SetValue ( object value ) : void

Method that sets the Value property by fixing up any values based on GetProperty() rules. This means if you pass an ComArray the raw array will be unpacked and stored for example.

SetValueFromCreateInstance ( string typeName, Westwind.WebConnection.ComArray parms ) : void

Sets the Value property from a CreateInstance call. Useful for value types that can't be passed back to FoxPro.

SetValueFromEnum ( string enumType, string enumName ) : void
SetValueFromInvokeMethod ( object objectRef, string method, Westwind.WebConnection.ComArray parms ) : void

Sets the Value property from a method call that passes it's positional arguments as an array. This version accepts a ComArray directly so it can be called directly from FoxPro with a ComArray instance

SetValueFromInvokeMethod ( object objectRef, string method, object parms ) : void

Sets the Value property from a method call that passes it's positional arguments as an array.

SetValueFromInvokeStaticMethod ( string typeName, string method, Westwind.WebConnection.ComArray parms ) : void

Invokes a static method with the passed parameters and sets the Value property from the result value.

SetValueFromProperty ( object objectRef, string property ) : void

Sets the Value property from a property retrieved from .NET Useful to transfer value in .NET that are marshalled incorrectly in FoxPro such as Enum values (that are marshalled as numbers)

SetValueFromStaticProperty ( string typeName, string property ) : void

Sets the value property from a static property retrieved from .NET. Useful to transfer value in .NET that are marshalled incorrectly in FoxPro such as Enum values (that are marshalled as numbers)

SetValueFromSystemConvert ( string method, object value ) : void

Invokes a method on the System.Convert static class to perform conversions that are supported by that object

ToString ( ) : string

Returns the string value of the embedded Value object

Защищенные методы

Метод Описание
SetValueFromCreateInstance_Internal ( string typeName, object parms ) : void

Sets the Value property from a CreateInstance call. Useful for value types that can't be passed back to FoxPro.

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

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

Retrieves a GUID value as a string from the Value structure
public GetGuid ( ) : string
Результат string

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

Returns the name of the type in the Value structure
public GetTypeName ( ) : string
Результат string

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

public GetValue ( ) : object
Результат object

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

Create a new Guid on the Value structure
public NewGuid ( ) : void
Результат void

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

Returns a byte value which is similar to Int16.
public SetByte ( object value ) : void
value object
Результат void

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

Sets a character value from a string or integer
public SetChar ( object val ) : void
val object
Результат void

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

Allows setting of DbNull from FoxPro since DbNull is an inaccessible value type for FoxPro.
public SetDbNull ( ) : void
Результат void

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

Sets a Decimal value. This can actually be done in FoxPro with CAST(val as Currency)
public SetDecimal ( object val ) : void
val object
Результат void

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

Assigns an enum value to the value structure. This allows to pass enum values to methods and constructors to ensure that method signatures match properly
public SetEnum ( string enumValue ) : void
enumValue string full type and value name. Example: System.Windows.Forms.MessageBoxOptions.OK
Результат void

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

Assigns an enum value that is based on a numeric (flag) value or a combination of flag values.
public SetEnumFlag ( string enumType, int enumValue ) : void
enumType string Enum type name (System.Windows.Forms.MessageBoxOptions)
enumValue int numeric flag value to set enum to
Результат void

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

Set a float value
public SetFloat ( object val ) : void
val object
Результат void

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

Sets value to a .NET Guid. Creates a GUID from either ComGuid instance a string, or if null creates a new GUID.
public SetGuid ( object value ) : void
value object
Результат void

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

Sets a Short value which is not supported in Visual FoxPro
public SetInt16 ( object val ) : void
val object
Результат void

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

Sets an Int64 value which is not supported in Visual FoxPro
public SetInt64 ( object val ) : void
val object
Результат void

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

Sets a Long (64 bit) integer value
public SetLong ( object val ) : void
val object
Результат void

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

Sets a Single Value on the
public SetSingle ( object val ) : void
val object
Результат void

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

Sets an UInt64 value which is not supported in Visual FoxPro
public SetUInt32 ( object val ) : void
val object
Результат void

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

Sets an UInt64 value which is not supported in Visual FoxPro
public SetUInt64 ( object val ) : void
val object
Результат void

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

Method that sets the Value property by fixing up any values based on GetProperty() rules. This means if you pass an ComArray the raw array will be unpacked and stored for example.
public SetValue ( object value ) : void
value object
Результат void

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

Sets the Value property from a CreateInstance call. Useful for value types that can't be passed back to FoxPro.
public SetValueFromCreateInstance ( string typeName, Westwind.WebConnection.ComArray parms ) : void
typeName string
parms Westwind.WebConnection.ComArray
Результат void

SetValueFromCreateInstance_Internal() защищенный Метод

Sets the Value property from a CreateInstance call. Useful for value types that can't be passed back to FoxPro.
protected SetValueFromCreateInstance_Internal ( string typeName, object parms ) : void
typeName string
parms object
Результат void

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

public SetValueFromEnum ( string enumType, string enumName ) : void
enumType string
enumName string
Результат void

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

Sets the Value property from a method call that passes it's positional arguments as an array. This version accepts a ComArray directly so it can be called directly from FoxPro with a ComArray instance
public SetValueFromInvokeMethod ( object objectRef, string method, Westwind.WebConnection.ComArray parms ) : void
objectRef object Object instance
method string Method to call
parms Westwind.WebConnection.ComArray An array of the parameters passed (use ComArray and InvokeMethod)
Результат void

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

Sets the Value property from a method call that passes it's positional arguments as an array.
public SetValueFromInvokeMethod ( object objectRef, string method, object parms ) : void
objectRef object Object instance
method string Method to call
parms object An array of the parameters passed (use ComArray and InvokeMethod)
Результат void

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

Invokes a static method with the passed parameters and sets the Value property from the result value.
public SetValueFromInvokeStaticMethod ( string typeName, string method, Westwind.WebConnection.ComArray parms ) : void
typeName string
method string
parms Westwind.WebConnection.ComArray
Результат void

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

Sets the Value property from a property retrieved from .NET Useful to transfer value in .NET that are marshalled incorrectly in FoxPro such as Enum values (that are marshalled as numbers)
public SetValueFromProperty ( object objectRef, string property ) : void
objectRef object An object reference to the base object
property string Name of the property
Результат void

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

Sets the value property from a static property retrieved from .NET. Useful to transfer value in .NET that are marshalled incorrectly in FoxPro such as Enum values (that are marshalled as numbers)
public SetValueFromStaticProperty ( string typeName, string property ) : void
typeName string Full type name as a string - can also be an Enum type
property string The static property name
Результат void

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

Invokes a method on the System.Convert static class to perform conversions that are supported by that object
public SetValueFromSystemConvert ( string method, object value ) : void
method string The Convert method name to call as a string
value object The Value to convert
Результат void

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

Returns the string value of the embedded Value object
public ToString ( ) : string
Результат string