C# Class Microsoft.Scripting.ComInterop.Variant

显示文件 Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
GetAccessor System.Reflection.PropertyInfo
GetByrefSetter System.Reflection.MethodInfo
IsPrimitiveType bool
ToObject object
Variant System

Public Methods

Method Description
Clear ( ) : void

Release any unmanaged memory associated with the Variant

SetAsByrefBool ( Int16 &value ) : void
SetAsByrefBstr ( IntPtr &value ) : void
SetAsByrefCy ( System.Int64 &value ) : void
SetAsByrefDate ( Double &value ) : void
SetAsByrefDecimal ( Decimal &value ) : void
SetAsByrefDispatch ( IntPtr &value ) : void
SetAsByrefError ( Int32 &value ) : void
SetAsByrefI1 ( SByte &value ) : void
SetAsByrefI2 ( Int16 &value ) : void
SetAsByrefI4 ( Int32 &value ) : void
SetAsByrefI8 ( System.Int64 &value ) : void
SetAsByrefInt ( IntPtr &value ) : void
SetAsByrefR4 ( System.Single &value ) : void
SetAsByrefR8 ( Double &value ) : void
SetAsByrefUi1 ( Byte &value ) : void
SetAsByrefUi2 ( UInt16 &value ) : void
SetAsByrefUi4 ( UInt32 &value ) : void
SetAsByrefUi8 ( System.UInt64 &value ) : void
SetAsByrefUint ( UIntPtr &value ) : void
SetAsByrefUnknown ( IntPtr &value ) : void
SetAsByrefVariant ( Variant &value ) : void
SetAsByrefVariantIndirect ( Variant &value ) : void
SetAsIConvertible ( IConvertible value ) : void
SetAsNull ( ) : void
ToString ( ) : string

Private Methods

Method Description
GetAccessor ( VarEnum varType ) : PropertyInfo
GetByrefSetter ( VarEnum varType ) : MethodInfo
IsPrimitiveType ( VarEnum varEnum ) : bool

Primitive types are the basic COM types. It includes valuetypes like ints, but also reference types like BStrs. It does not include composite types like arrays and user-defined COM types (IUnknown/IDispatch).

ToObject ( ) : object
Variant ( ) : System

Method Details

Clear() public method

Release any unmanaged memory associated with the Variant
public Clear ( ) : void
return void

SetAsByrefBool() public method

public SetAsByrefBool ( Int16 &value ) : void
value System.Int16
return void

SetAsByrefBstr() public method

public SetAsByrefBstr ( IntPtr &value ) : void
value System.IntPtr
return void

SetAsByrefCy() public method

public SetAsByrefCy ( System.Int64 &value ) : void
value System.Int64
return void

SetAsByrefDate() public method

public SetAsByrefDate ( Double &value ) : void
value Double
return void

SetAsByrefDecimal() public method

public SetAsByrefDecimal ( Decimal &value ) : void
value Decimal
return void

SetAsByrefDispatch() public method

public SetAsByrefDispatch ( IntPtr &value ) : void
value System.IntPtr
return void

SetAsByrefError() public method

public SetAsByrefError ( Int32 &value ) : void
value System.Int32
return void

SetAsByrefI1() public method

public SetAsByrefI1 ( SByte &value ) : void
value SByte
return void

SetAsByrefI2() public method

public SetAsByrefI2 ( Int16 &value ) : void
value System.Int16
return void

SetAsByrefI4() public method

public SetAsByrefI4 ( Int32 &value ) : void
value System.Int32
return void

SetAsByrefI8() public method

public SetAsByrefI8 ( System.Int64 &value ) : void
value System.Int64
return void

SetAsByrefInt() public method

public SetAsByrefInt ( IntPtr &value ) : void
value System.IntPtr
return void

SetAsByrefR4() public method

public SetAsByrefR4 ( System.Single &value ) : void
value System.Single
return void

SetAsByrefR8() public method

public SetAsByrefR8 ( Double &value ) : void
value Double
return void

SetAsByrefUi1() public method

public SetAsByrefUi1 ( Byte &value ) : void
value Byte
return void

SetAsByrefUi2() public method

public SetAsByrefUi2 ( UInt16 &value ) : void
value System.UInt16
return void

SetAsByrefUi4() public method

public SetAsByrefUi4 ( UInt32 &value ) : void
value System.UInt32
return void

SetAsByrefUi8() public method

public SetAsByrefUi8 ( System.UInt64 &value ) : void
value System.UInt64
return void

SetAsByrefUint() public method

public SetAsByrefUint ( UIntPtr &value ) : void
value System.UIntPtr
return void

SetAsByrefUnknown() public method

public SetAsByrefUnknown ( IntPtr &value ) : void
value System.IntPtr
return void

SetAsByrefVariant() public method

public SetAsByrefVariant ( Variant &value ) : void
value Variant
return void

SetAsByrefVariantIndirect() public method

public SetAsByrefVariantIndirect ( Variant &value ) : void
value Variant
return void

SetAsIConvertible() public method

public SetAsIConvertible ( IConvertible value ) : void
value IConvertible
return void

SetAsNull() public method

public SetAsNull ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string