C# 클래스 Westwind.WebConnection.ComValue

파일 보기 프로젝트 열기: RickStrahl/wwDotnetBridge

공개 메소드들

메소드 설명
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